Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Want to set the value of this.controlsource = this.value
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00144183
Message ID:
00144263
Views:
41
calling setfocus from my toolbar does fire the valid. but unfortunately i could not find a way of knowing what the valid returned, short of setting a switch. without knowing i continue through my save logic. could put a switch in all the valids, but it would be easier to just make sure the controlsource and value are in sync at the top of the valids.

>Brenda,

>I don't use toolbars, but I think the standard way of dealing with this is to _screen.ActiveControl.SetFocus() first thing in the toolbar buttons. This will cause the Valid to fire so the ControlSource gets updated.

>>doing a work around for validating from the cmdsave on the toolbar. because i call lastcontrol.valid myself, the controlsource is not updated with the value. want to update the controlsource with the value generically. do not want to change all my valid code, since it all references the controlsource now.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform