Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TableUpdate
Message
From
01/10/1997 11:03:10
 
 
To
01/10/1997 11:00:07
Sonny Chouinard
CHCA Computer Systems Inc.
Lachenaie, Quebec, Canada
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00052634
Message ID:
00052646
Views:
30
>>>>>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()
>>>
>>>Hi, thanks for your response! The problem is I hav a lot of controls with valid events. I want just to fire the current control (if exist) valid event.
>>
>>So, what's the problem?
>>Form.ActiveControl.Valid()
>
>Thanks, I didn't know there was a ActiveControl!!! But I wonder why the valid doesn't fire with a shortcut. Is it because the shortcut doesn't have a focus? The problem doesn't happen if I click save!!!

Yes, focus is still on form/control. This is why ActiveControl is still available.
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform