Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cursor question
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00748450
Message ID:
00748476
Views:
24
>If I run a select statement and return more than one record to a cursor how, using the scan/endscan statement, can I loop through that cursor and add the value to a listbox?
>
>Thanks!

John, what is the RowSource for the listbox?
For example, you can use listbox.AddItem() or AddListItem() methods is the source is 0-None. For the array source you need to redimension the array, assign your new value to the array element. If it's an updateable cursor or table you can use APPEND BLANK and REPLACE, or INSERT INTO [listboxsource]

In any case do not forget to issue
listbox.Requery()
listbox.Refresh()
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Reply
Map
View

Click here to load this message in the networking platform