Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Detecting changes in field
Message
From
06/11/2004 14:05:42
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
06/11/2004 11:26:35
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Environment versions
Visual FoxPro:
VFP 7 SP1
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00958830
Message ID:
00958875
Views:
16
This message has been marked as a message which has helped to the initial question of the thread.
GetFldState() will tell that the field is modified, if the user typed anything.

If the user changes the value of a field back to what it was before, it will still be marked as "modified". If this bothers you, you can also compare Field1 with oldval("Field1") (repeat for each field).

>I have a pageframe. In each pages I have to detect when a change has been made in one of the field on that page. I'll then update the "Date of the last change" field.
>
>My question : What would be the best way to detect if a field was changed.
>
>I'm thinking of first gather the values when I get in the page and then gather again when user leaves the page. If a change is detected then I update the date.
>
>Am I on the right track or is there a better way to do this?
>
>Is there a function (native) in VFP to compare values for the result of the two gather? Otherwise what do you suggest as the most efficient way to do this?
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