IF "2" $ GETFLDSTATE(-1,thisform.dataenvironment.cursor1.alias) OR "4" $ GETFLDSTATE(-1,thisform.dataenvironment.cursor1.alias) lnAnswer=MESSAGEBOX("Save changes?",36,"Information has changed") IF lnAnswer = 6 =TABLEUPDATE(0,.T.,thisform.dataenvironment.cursor1.alias) ELSE =TABLEREVERT(.T.,thisform.dataenvironment.cursor1.alias) ENDIF ENDIF* example cancel method code
=TABLEREVERT(.T.,thisform.dataenvironment.cursor1.alias) IF EOF() GO BOTTOM ELSE GO RECNO() ENDIF THISFORM.REFRESH * example destroy method code <pre> THISFORM.savedata>Well, i'm really just trying to implement the basic click event code for each button. i'm saving directly to a table. (i'll save the eccentric database tricks for after i'm a little more experienced)