Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GetFieldState()
Message
From
02/03/1999 14:46:34
Koos Veel
Gamma Research
Aruba
 
 
To
02/03/1999 14:23:34
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00193273
Message ID:
00193287
Views:
12
>What is the code in your QueryUnload and/or Release events for the Form? You may be doing some sort of routine with a blanket GetFldState() and/or TableRevert() or TableUpdate() and including tables that aren't buffered, for example, look up tables.
>
>
Hello John

This is the method;

*-- Here we check if the user changed values without saving them.
*-- If he does, a "discard changes"-window will popup.
*-- If he doesn't nothing will happen.
mFieldChanges = GETFLDSTATE(-1)
mFound1 = AT("2",mFieldChanges)
mFound2 = AT("4",mFieldChanges)
IF mFound1 = 0 AND mFound2 = 0
RETURN .F.
ELSE
RETURN .T.
ENDIF

In our tables we use buffering =5 and we use this method to check if there heve been made changes in the form/table without saving...

Thanks allready
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform