Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RunAll as SetAll but for methods
Message
From
05/10/2006 08:34:45
 
 
To
05/10/2006 00:30:07
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01159583
Message ID:
01159641
Views:
13
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform