Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RunAll as SetAll but for methods
Message
From
05/10/2006 21:54:13
 
 
To
05/10/2006 08:34:45
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01159583
Message ID:
01159918
Views:
14
>Hi Kenneth.
>
>>While SetAll() can be used to change all properties, I sometimes want to run a method on all of my edit controls in a form. These controls can be in containers, grids or pages of a page frame so I only want to run the method for those objects having it - but I want to drill down into containers (that don't have the method.
>
>The way I've implemented this is to create a property in all my base classes with an Assign method. Then, you can use Thisform.SetAll('PropertyName', Value) to fire the Assign method for all objects.
>
>Doug


I should have known you'd come up with a clever way of doing this.
Thanks,
Ken
Previous
Reply
Map
View

Click here to load this message in the networking platform