Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is it possible to do it in one line of code?
Message
De
16/08/2003 12:00:56
 
 
À
16/08/2003 10:08:55
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00820748
Message ID:
00820760
Vues:
14
>Hi,
>Is it possible to store a property value/call a method of all instance objects in form without have to loop thru all controls?
>
>Thank you

Container.SetAll('PropertyName','Value','Class')

There is no way to call a method that I know of. Of course, you could do the above and if your property has an assign method that will fire. Kevin McNeish wrote an article on using this method to have 'poor mans' events in VFP.

Of course, if VFP 8.0 the event binding is essentially what are you asking for. You bind, for example, the 'DoItAll' method of your form to the 'FormDoAll' method of your controls. When you call the DoItAll() or raise it as an event, then all the FormDoAll methods bound to it will fire.

BOb
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform