define class cusEvtHandler as Custom procedure ICHandler m_fieldmodified = .T. endproc enddefineIn the form's Init, add the following:
local lnctrlcnt THIS.AddObject('oevthandler','cusEvtHandler') for lnctrlcnt = 1 to THIS.ControlCount if upper(THIS.Controls[lnctrlcnt].BaseClass) = 'TEXTBOX' then bindevent(THIS.Controls[lnctrlcnt],'InterActiveChange', THIS.oevthandler,'ICHandler') endif endforDepending on the scope of m_fieldmodified, this should work. When the form is released, all the binding will go away automatically.