>I wanted to loop through all controls on a form and if an instance of a particular class is found I wanted a method of this class to be executed, can SetAllX do this?
>
>Further, this called method will return a logical value depending on which I want the calling code to stop further processing, so out of multiple instances even if one of them returns a .F. I want the calling code to stop executing. So is it possible to get a list of return values from SetAllX?
SetAll is used to set the values of properties. What you want to use is a FOR EACH loop:
FOR EACH oControl IN thisform
IF oControl.MyMethod()
RETURN
ENDIF
NEXT obutton