Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TableUpdate
Message
From
01/10/1997 11:14:38
 
 
To
01/10/1997 10:17:29
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00052634
Message ID:
00052651
Views:
35
>>I have this problem for a while. I've set some shortcut keys in my menu to add, save, revert records but the problem is when I use the save or revert shortcut, the valid event of the control (where I am when I use the shortcut) won't fire. So, my tableupdates are fired and I exit the edit pageframe. When I want to edit another record I've got the "Uncommited changes for view" error.
>>
>>I want to fire explicitely the valid event before continuing the code in the save method. Is there a way to do that?
>
>If the problem is just to fire an event, you can do it programmatically:
>Thisform.ControlX.Valid()

Sonny- the VMF Framework has a method in its forms controller object that takes care of this. Included with the downloadable freeware version is a paper that describes this functionality in detail. If you already use a form controller object, then this might not be a far stretch for you to implement, but if your framework is nothing similar, than you could probably find this functionality elsewhere easier.

Basically the framework requires the the toolbar to call the the forms controller object's activecontrolvalid method, which fires the valid code before any other action is taken. This is a good idea in a lot of cases where the valid code doesn't fire automatically, such as when other forms are instantiated.
Erik Moore
Clientelligence
Previous
Reply
Map
View

Click here to load this message in the networking platform