Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Checking user modify on form
Message
De
18/04/2002 06:44:22
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
18/04/2002 05:56:27
Dino Liberale
Ministero Lavori Pubblici
Trieste, Italie
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00646221
Message ID:
00646233
Vues:
14
>Hi all,
>Is there a simple way to test if user has modified values in texbox, grid etc. on a form ? So if user undo his work, I know if must save or simply release data.
>
>Thanks for help
>Dino

Dino,
If controls are bound to data (controlsources have table.field) then simply use GetNextModified() and/or GetFldState(-1)
Otherwise you need to loop all controls and check values. It's not an easy task (check FoxyClasses for a sample) really, a simple trick could be to 'Save' w/o TableUpdate() (for things to do if any) and just before TableUpdate() use GetNextModified() and/or GetFldState(-1). TableUpdate() with results from those functions.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform