Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Call All Methods of a Class.
Message
From
17/10/2002 06:35:33
 
 
To
17/10/2002 05:59:42
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00712235
Message ID:
00712239
Views:
7
Hi!

You can do follwoing:

- Create a property in your class called "lActRefresh"
- Create _Assign method for it with code "this.Refresh"
- then you can use "thisform.SetAll("lActRefresh",.T.)

VFP takes care about the rest :-)

I use this approach very often to organize something like "communication" (events dispatching) between sets of specific objects on the form.

HTH.

>Hello,
>
>Is there any way to call all methods of a class type for example similar to the this.SetAll("Enabled",.T.,"MyClass") but for methods for example call all the refresh methods but only on certain objects.
>
>My idea was to write a form method on my base form class called:
>
>this.CallAll("Refresh",.T.,"MyClass")
>
>That looped through all objects on the form and called each method but I imagine it would be slow and figured there could be a native method I'm missing.
>
>BR
>Tim
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Reply
Map
View

Click here to load this message in the networking platform