* Check to see if there is a form active right now IF TYPE("_SCREEN.ActiveForm.Name") = "C" * If there is, then store a reference to it in the variable loForm loForm = _screen.activeform ELSE * If there is no active form, do whatever you need to do about that situation * No form is active ENDIF