Link Search Menu Expand Document

Object.FindObject Method

Explanation
Call format obj.FindObject( name [, rule ] )
Return value None
Arguments String name or Class identifier
integer rule
Exception None
Example of use
   /* Search for Form objects from parents or ancestors */
var form_obj = FindObject(Form, FIND_ANCESTOR);
 
/* Search for a function with the same rules as the event handler */
var fnc = FindObject("OnTouch", FIND_EVENTPATH);
if (fnc != null) {
    fnc(e);
}
 
/* Search for txCode in object-scoped rules */
var obj = FindObject("txCode", FIND_SCOPEPATH);
if (obj != null) {
    obj.BgColor = $red;
}
 
Related item FindChild method