General information
Category:
Coding, syntax & commands
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only