Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
This.Value = This.Value
Message
 
To
23/10/1998 09:16:07
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00149804
Message ID:
00149827
Views:
41
Federico,

This behavior is rooted in the way the controls update their controlsources. The update occurs when the control is losing focus. The interactivechange fires before the control has updated its controlsource, so teh Refresh call causes the control to reread its controlsource (which is still the previous value) and refresh its display to reflect the controlsource's value.

This is a good example of why it si better to refresh specfic controls rather than the shot gun effect of refreshing the enitre form. If your InteractiveChange was to only refresh the other control you would not see this behavior.

The THIS.Value = THIS.Value causes the spinner to update its controlSource with the new value and therefore the subsequent refresh reads the new value from the controlsource.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform