Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Listbox
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00498679
Message ID:
00499189
Views:
18
>>Another quick question...
>>
>>How to clear array so that the listbox becomes clear again when selecting a different search type? I tried RELEASE ThisForm.laSQL (error) and RELEASE laSQL (does not work). I also tried Thisform.laSQL[1,1]="" (only clears first row). What should I do?
>>
>>Chuck
>>
>>>>>I took a brief look into the form (didn't have time to work on it in details). I think, the main prioblem was that you have to select into thisform.laSQL and RowSource for ListBox should be thisform.laSQL, not just laSQL, because otherwise it just goes out of scope, that's why you didn't see anything in your listbox. Basically, it was the only change I made (with few small others).
>
>In addition to what Kam said, to clear the array contents you could:
>
STORE "" TO <i>arrayname</i>
Exactly! In Init and before performing search you can put:
store "" to thisform.laSQL and it will work perfectly.

Sorry, haven't responded earlier, since I was busy with some modifications in couple of my projects...
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