Have a global variable initialize at the start of your for form:
Form.Load Method
----------------
m.glExecute = .T.
TextBox.LostFocus Method
------------------------
IF m.glExecute
<... your TextBox.LostFocus code >
ELSE
ENDIF
CancelButton.Click Method
-------------------------
m.glExecute = .F.
THISFORM.Release