Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Updating item selected in listbox
Message
From
14/05/2001 12:18:51
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Updating item selected in listbox
Miscellaneous
Thread ID:
00506887
Message ID:
00506887
Views:
50
I have a listbox that is populated by a cursor. If I click on an item in the listbox, it changes the record pointer in the cursor, which is good. What I can't figure out is how to do the reverse. If I manually change the record in the cursor, how do I get the selection to change?

I did a search here and found that I can change the selection by setting the value property. The problem with that is that I can't guarrantee the values in the listbox are unique. I can't take a chance that it will select the wrong one.

Is there a more reliable link between the listbox and the cursor that I can access? It must know somehow which record to select when you click on an item, so there must be a link. The question is whether or not it is an internal thing that isn't in the interface.

I just thought of another possibility that I'll throw out there if there is no simple solution. Could I make a second, invisible column, and use the value (or some other) property to access that?

Thanks,

Michelle
Next
Reply
Map
View

Click here to load this message in the networking platform