Updated()
UPDATED() ostensibly tells you whether any of the data in a form has changed since you last saved it. But it doesn't work right for its purpose.
Usage |
lAnythingNew = UPDATED() |
Example |
* This is how you should be able to use UPDATED(), but can't * This code might go in a Cancel button's Click * Assume FoxPro.H has been included in the form * Display the standard 'Save your changes (Y/N)' routine IF UPDATED() nResult = MESSAGEBOX("Save changes", MB_YESNO + ; MB_ICONQUESTION + MB_DEFBUTTON1) IF nResult = IDYES * call the save routine ENDIF ENDIF |
See Also |
GetFldState(), GetNextModified(), InteractiveChange, KeyPress, KeyPreview, ProgrammaticChange |