LOCAL llRetVal llRetVal = .T. IF ThisForm.JobCompleted = .F. NODEFAULT llRetVal = .F. ENDif RETURN llRetValForm.cmdClose.Click
IF ThisForm.QueryUnload() ThisForm.Release() ENDifThe NODEFAULT is what stops the unload: returning .F. is only useful if you add code to your exit button.