Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Highlighted listboxes
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00438169
Message ID:
00438204
Views:
11
>Hallo everybody!
>
>I have a problem with listboxes: Im listing a few fields in a listbox, and want the row of the selected record to be highlighted (white text on blue bottom) in the list. Ok, if Im clicking the mouse on the listbox, it works. But my problem is that I want the selected items in all listboxes in the form to be highlighted directly when the form is activated, before any manual actions is done.
>I have tried everything to get it work, but there will not be any automatic highlighting when im running the form.
>I must have forgotten some important detail, can anyone give me a tip?
>(Im using VFP6)
>
>Thanks in advance
>//Kjell
Cetin gave you a good way to do it using the index. But you can also set it based on Character data in the field
Lets say you have a field with a name (MyTable.Name) that you added to a ListBox as a controlsource, then you might:
MyList.Value=MyTable.Name
Imagination is more important than knowledge
Previous
Reply
Map
View

Click here to load this message in the networking platform