Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Detect changes in cursors
Message
From
03/02/1999 13:20:11
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00183522
Message ID:
00183544
Views:
20
>Hello all, I need suggestions on detecting changes to my data at the form level. I want to enable Save and Revert buttons and prompt to save/revert when form looses focus. I've seen several complex solutions based on reusability and toolbars, but I just need to manage it at the form level. I always have an application object available, and am using table buffering and private data sessions.
>
>Any help greatly appriciated.
>
>Dean

dean, If you are using Table buffering (as opposed to record), you will need a combination of GETNEXTMODIFIED and GETFLDSTATE.

Changed table fields report that they have been changed to GETFLDSTATE by showing something other than a "1". To check for anychanges, use something like

llChanged = GETFLDSTATE(-1) <> REPLICATE("1", FCOUNT() + 1)

see the help for GETFLDSTATE for details.
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform