Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can I fire a method for all instances of a class.
Message
From
11/04/2003 16:47:45
 
 
To
11/04/2003 16:37:19
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00776786
Message ID:
00776791
Views:
13
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
Previous
Reply
Map
View

Click here to load this message in the networking platform