Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is it possible to do it in one line of code?
Message
From
16/08/2003 12:00:56
 
 
To
16/08/2003 10:08:55
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00820748
Message ID:
00820760
Views:
15
>Hi,
>Is it possible to store a property value/call a method of all instance objects in form without have to loop thru all controls?
>
>Thank you

Container.SetAll('PropertyName','Value','Class')

There is no way to call a method that I know of. Of course, you could do the above and if your property has an assign method that will fire. Kevin McNeish wrote an article on using this method to have 'poor mans' events in VFP.

Of course, if VFP 8.0 the event binding is essentially what are you asking for. You bind, for example, the 'DoItAll' method of your form to the 'FormDoAll' method of your controls. When you call the DoItAll() or raise it as an event, then all the FormDoAll methods bound to it will fire.

BOb
Previous
Reply
Map
View

Click here to load this message in the networking platform