Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to display fields of table on the grid and select it
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00871218
Message ID:
00871830
Views:
23
Soykan,

You can use the Selected[] array of the listbox to preselect items in code. You have to set Multiselect = .t.
for i = 1 to this.ListCount step 2
   this.Selected[i] = .t.
endfor
you use the same loop to find out what items are selected.
for i = 1 to this.ListCount step 2
   if ( this.Selected[i] )
      * the item is selected
   endif
endfor
>:) thanks Davit let it work for me more , would you like to explain me about moverlist class using with pre selected fields .
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform