Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ListBox Using Array
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00049215
Message ID:
00049229
Views:
57
>>Maybe I misunderstand how 'requery' is used. According to the docs:
>>
>>"Use the Requery method to ensure a control contains the most recent data. The Requery method requeries the RowSource property and updates the list with the new values."
>>
>>I interpreted this to mean that if elements are added to the array that using 'requery' would update the list. Am I interpreting this incorrectly? If so, what would I need to do to refresh the list?
>
>George,
>
>I don't have an answer for you, but I am having a similiar problem. I'm changing the properties of a listbox on the fly using a method which creates an array when a commandbutton is clicked. I know the array is being created, and the listbox contains the correct number of rows, but each row is blank. I get the same result whether or not I use REQUERY.
>
>If you are able to figure out your problem, please let me know. I'll do the same.
>
>AL
Alan,
Erik Moore came up with a solution that worked for me but I don't know if your problem is the same. Anyway, what he said to try was explicitly defining the rowsource on the Activate method.

You can try redefining the RowSource each time you add an item to the array. Also try refreshing the entire form (if you are not already doing so). Let me know if this doesn't work.

George
Everything we see or seems
Is but a dream within a dream
- Edgar Allen Poe
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform