Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GetFieldState()
Message
De
02/03/1999 14:46:34
Koos Veel
Gamma Research
Aruba
 
 
À
02/03/1999 14:23:34
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00193273
Message ID:
00193287
Vues:
13
>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
Fil
Voir

Click here to load this message in the networking platform