>What is a good way to find out if data on a form has changed and will require a (tabelupdate) save? I want to know so that the
>"cancel" button will prompt "are you sure" before reverting the changes otherwise it will just clost the form. My fields on the form
>are bound to the table field. Data is table buffered. Using vfp5.
Not usre, it if works in VFP5.0(hopefully, it does):
lnModified=GetNextModified(0)
IF lnModified<>0 and lresp=0
lresp=messagebox('Do you want to save changes?',36) &&+32
ENDIF
IF lresp=7 && User requested that changes not be saved.
=TABLEREVERT(.T.,THISFORM.laDE[i,1])
ELSE
=thisform.dotableupdate() && NSL 6/26/00
ENDIF
If it's not broken, fix it until it is.
My Blog