Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
TableUpdate
Message
 
À
01/10/1997 10:15:17
Sonny Chouinard
CHCA Computer Systems Inc.
Lachenaie, Québec, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00052634
Message ID:
00052754
Vues:
41
>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?
Sonny,

Yes there is;

_screen.activeform.activecontrol.setfocus()

it will be safer if you do it this way;

IF TYPE("_screen.activeform.activecontrol.name") = "C"
_screen.activeform.activecontrol.setfocus()
ENDIF
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform