Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Get value of each element in a listbox
Message
From
28/01/2005 16:33:58
 
 
To
28/01/2005 16:17:53
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Miscellaneous
Thread ID:
00981898
Message ID:
00981902
Views:
18
This message has been marked as the solution to the initial question of the thread.
>Hello,
>
>
>for i=1 to thisform.listbox.litscount
>   * Get values of each element of the listbox (BoundColumn=2)
>endfor
>
>
>It seems quite simple but I can't do it...
>
>Thanks !
>Steph

Try this
for i=1 to thisform.listbox.listcount
   ? thisform.listbox.List( i, 1 )       && column 1
   ? thisform.listbox.List( i, 2 )       && column 2
next
Greg Reichert
Previous
Reply
Map
View

Click here to load this message in the networking platform