SKIP FOR goSomeWindow.SomeProp = .T.This trick has been my reaction to my finding that it is troublesome and frustrating to declare something like:
SKIP FOR _vfp.activeform.SomeProp = .T.That expression gives an error if the form is out of scope and the expressions are evaluated anyway, for example if the form is minimized.
skip for !Bar17Allowed()
&& sample code, not tested && if SomeProp is hidden, then use type() instead of vartype() function Bar17Allowed() local i, obj, MustSkip MustSkip = FALSE for i = _screen.FormCount to 1 step -1 obj = _screen.Forms[m.i] if( inlist(vartype(m.obj), T_OBJECT) and inlist(vartype(m.obj.SomeProp), T_LOGICAL) and m.obj.SomeProp ) MustSkip = TRUE exit endif endfor return m.MustSkip endfunc