Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
List box & go top
Message
 
 
To
21/03/2000 11:23:57
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00348398
Message ID:
00348443
Views:
29
Hi Anthony,
>
>I went with this:
>
>FOR cntr1 = 1 TO THISFORM.lststatus.LISTCOUNT
> THISFORM.lststatus.SELECTED(cntr1) = .F.
>ENDFOR
>THISFORM.lststatus.SELECTED(1) = .T.
>THISFORM.lststatus.SELECTED(1) = .F.
>THISFORM.REFRESH
>
>It's not elegent, but it works.
>
>Thanks
>Mike

How about thisform.lstStatus.ResetToDefault('Selected') ??

The other approach:
use 'back' loop, e.g.
for cntr1=thisform.lstStatus.ListCount to 1 step -1
...
next
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform