Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
List box view
Message
From
11/06/2001 22:40:22
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00488756
Message ID:
00518196
Views:
11
>I just came across an very strange thing, with list boxes,
>here is what goes on. in a form (class form)
>
>on the form I have a search button, which gets the data necessary into a local cursor
>Then the list box is filled type 6 with data from that cursor,
>
>when I fill in a text box again search stuff.. and press the button again, which closes the cursor, and refills in the listbox data....
>
>the list box on the screen does not refresh until I put the mouse over it, to activiate it.
>
>I have tried refreshing the list box, also requery() the list box, - after the new data is in it.. I have even gone so far as making the list box non visible, and then visible when it had new data...
>nothing seems to work.
>
>when I step through it with set step on. everthing works fine... just running it when I am not stepping through it, I find this - lack of refresh...
>
>is there something I am missing ? is there a workarround ?
>
>Thanks for reading.
>Bob Lee

I've seen this as well. The order I use is 1) .Requery(), 2) Set .RowSource,
3) .Refresh() control, 4) set .Value. My guess is the .SetFocus() is forcing the .Value.
-Henry-
Previous
Reply
Map
View

Click here to load this message in the networking platform