gettingstarted
[Top] [All Lists]

Getting data out of a ListBox cell

To: Started Getting <gettingstarted at lists dot realsoftware dot com>
Subject: Getting data out of a ListBox cell
From: Greg Olson-Hyde <isomfield at optusnet dot com dot au>
Date: Thu, 30 Sep 2004 15:28:44 +1000
Delivered-to: gettingstarted at lists dot realsoftware dot com
G'day All,

How do I get data out of a specific cell in a clicked row?

If in the 'Change' event of a ListBox I use:

     EditField1.text= me.cell(7,4)

The EditField displays the data from the correct cell in the hard coded row.

But... if I use:

     Dim i As integer = me.listIndex
     EditField1.text= me.cell(i,4)

I get an "out of bounds error" and the app shuts down.

All I want to do is to display the data from the column in the clicked row in an EditField - how do I do it?

RB 5.5.2, Mac OS X 10.3.5
Cheers

Greg
Sydney Australia

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>