Information générale
Catégorie:
Codage, syntaxe et commandes
>What is the code in your QueryUnload and/or Release events for the Form? You may be doing some sort of routine with a blanket GetFldState() and/or TableRevert() or TableUpdate() and including tables that aren't buffered, for example, look up tables.
>
>
Hello John
This is the method;
*-- Here we check if the user changed values without saving them.
*-- If he does, a "discard changes"-window will popup.
*-- If he doesn't nothing will happen.
mFieldChanges = GETFLDSTATE(-1)
mFound1 = AT("2",mFieldChanges)
mFound2 = AT("4",mFieldChanges)
IF mFound1 = 0 AND mFound2 = 0
RETURN .F.
ELSE
RETURN .T.
ENDIF
In our tables we use buffering =5 and we use this method to check if there heve been made changes in the form/table without saving...
Thanks allready
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement