Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to know when any field has changed in a form...
Message
From
01/10/2002 19:52:31
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00706643
Message ID:
00706650
Views:
30
>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)
Previous
Reply
Map
View

Click here to load this message in the networking platform