* Method: QueryUnLoad() * Will be called when user presses "x" if not (DoDefault() and AdditionalConditions()) NoDefault && Do not close the form endifPerhaps the form classes in CodeMine call some other method from QueryUnload(), which you can use instead. If this is the case, perhaps you don't have to use NoDefault; instead, adapt to the structure of the function (probably RETURN .F.).