Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to know when any field has changed in a form...
Message
De
01/10/2002 19:52:31
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00706643
Message ID:
00706650
Vues:
33
>Is there an easy way to test if any field in a form has changed since it was activated? Right now I display a warning if the user leaves a form without selecting the [SAVE] option first. This makes the end user question if they changed something when they didn't.

I suggest you see my article on buffering (here in the UT).

Basically, you activate buffering, and check for changes with GetFldState(). GetFldState(-1) should give a string with only "1"-s if the record didn't change.

If you use buffering, you save changes with TableUpdate(), or revert changes with TableRevert().

HTH, Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform