Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can I fire a method for all instances of a class.
Message
De
11/04/2003 16:47:45
 
 
À
11/04/2003 16:37:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00776786
Message ID:
00776791
Vues:
15
This message has been marked as the solution to the initial question of the thread.
Steve,

Just an idea...

Add a property to the class, and put an assign method on this property. Use setall() to set this property, and use the assign method to run the method you want to fire.

>using the setall() method of a form you can set a property for every instance of a class on the form.
>
>Is there a method similarly that could be used to fire a method for every intance of a class.
>
>myfireall('click()','txtbox')
>
>or perhaps a better way.
>
>I have 20 combo boxes on a form. There is a custom method in each combobox that I need to fire. I know I can code each one individually, but thought there might be a cleaner way to do it.
Steve Gibson
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform