Good day,

I have made progress in creating a script that searches for a given control.

FOR EACH  oChild IN Obj.Children  
        IF oChild.Name  = MySearchItem THEN
                EXIT FOR
END FOR
' Nex line errors when search failed.
IF oChild 
 IS  NOTHING THEN
                ReturnValue = NOTHING 
ELSE
ReturnValue = oChild
END IF  

What should I be using in the second IF clause?

Thanks,

Jonathan 

Reply via email to