Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Checking user modify on form
Message
From
18/04/2002 06:44:22
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
18/04/2002 05:56:27
Dino Liberale
Ministero Lavori Pubblici
Trieste, Italy
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00646221
Message ID:
00646233
Views:
13
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform