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.comICQ #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.