Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing an object by value
Message
From
05/01/2003 12:25:00
Christian Cote
Les Logiciels Onoma Inc.
Longueuil, Quebec, Canada
 
 
To
05/01/2003 11:40:18
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00738130
Message ID:
00738158
Views:
19
Yeah your right, I could simply call my toolbar "factory" and ask it to simply instantiate my toolbar class. The reason why I wanted to have the toolbar object in an object's array is that one form could simply pass the toolbars it needed. For sure, several forms share the same toolbar but they do not use all of the buttons on it. So I wanted to put some code in the activate event of the forms that would simply pass a specific toolbar to my application object and activate this toolbar with specific buttons enabled or visible.

When I pass a toolbar object to my app object it works fine. But as soon as the toolbar object passed to the array is released, so it is for the one passed as parameter to my global array. I guess I will try to work it differently.

Thank you for your help,
Christian
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform