Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ListBox control
Message
From
26/06/1996 09:16:06
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00002923
Message ID:
00002966
Views:
36
The way to change the highlighted (selected) item in a list box is to change the selected() index property to true.
For example if you want indexed item number 10 to be selected for a list box named list1, do:
THISFORM.LIST1.SELECTED(10)=.T.

Or maybe something more generic!
HTH

>>Scot
>>
>>Refresh()?
>>
>>Tom
>
>Tom,
>
>Nope, I'm already doing that. It does update the
>list when a new item is added or when one is
>modified or deleted, but it does not give the
>correct row "focus". I've done this with a grid,
>so maybe I'll just switch to that.
>
>Thanks a
Michael P. Haake
FoxPro Programmer
"Doing the best I can!"
** Retired Air Force **
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform