Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can SetAllX be used to call a method of a particular cla
Message
From
04/08/2007 10:16:17
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01245942
Message ID:
01245950
Views:
19
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform