Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combo displayvalue problem
Message
From
28/04/2003 09:45:36
Alan Harris-Reid
Baseline Data Services
Devon, United Kingdom
 
 
To
27/04/2003 08:14:38
Alan Harris-Reid
Baseline Data Services
Devon, United Kingdom
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00781911
Message ID:
00782200
Views:
14
Ok, I've looked further into this problem and discovered a wierd (but effective) solution.

As the combo array had been re-loaded, I tried the usual 'trick' of re-assigning using this.controlsource=this.controlsource (and the same with rowsource) but this did not solve the problem.

To check that combo.refresh was firing I inserted WAIT WINDOW "Refresh firing" TIMEOUT 2 in the refresh method. The message displayed, but so did the combo's contents!! So I replaced WAIT WINDOW... with INKEY(0.0001) (a very small delay which will not hit performance), and it works every time!

Has anyone any idea what is going on here, and why the small delay 'kicks' the combo into displaying the correct value?

Many thanks,
Alan
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform