Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
LISTBOX shows only one line. How to fix it?
Message
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00059004
Message ID:
00059282
Views:
32
>>>The Title asks it all!
>>
>>but not much. Do you want to say that you have many items in Listbox.Rowsource and just one of them appears on control? Regardless to your reply here, it's always helpful to do something like:
>>Thisform.List1.Rowsource=Thisform.List1.Rowsource
>>Thisform.List1.Requery
>
>Edward, You have given me an opportunity in the above message to ask a (newbie) question which I have had several times:
> In the line above (and in lines like it I have seen elsewhere):
>
> Thisform.List1.Rowsource=Thisform.List1.Rowsource
>
> This looks to me like: A = A or 10 = 10
>
> And I don't have any background on why this would be useful.
>
> Tom H.

Yes, it looks pretty stupid, but it works. It was found by many people two years ago when VFP just appeared, and it still helps in many crazy situations, so often that it became a rule on UT to remind... BTW, it's not the only 'crazy' line, e.g. Wait Window "" timeout 0.1 is also very helpful sometimes. These things actually force VFP to wake up and do what it's supposed to do.
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform