LOCAL llReturn thisform.lIsClosing = .t. if type('THISFORM.ActiveControl') = 'O' and not ; isnull(thisform.activecontrol) and PEMSTATUS(thisform.activecontrol,'valid',5) ; and inlist(lower(thisform.activecontrol.baseclass),'textbox','editbox') thisform.activecontrol.valid() endif llReturn = dodefault() thisform.lIsClosing = .f. RETURN m.llReturnYet when I type in edtNotes and then click on close button in the upper right corner of the form, the value just goes away. What can I do to prevent this behavior?