Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can SetAllX be used to call a method of a particular cla
Message
De
04/08/2007 10:16:17
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01245942
Message ID:
01245950
Vues:
20
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform