Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing an object by value
Message
From
05/01/2003 11:40:18
 
 
To
05/01/2003 10:00:13
Christian Cote
Les Logiciels Onoma Inc.
Longueuil, Quebec, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00738130
Message ID:
00738143
Views:
16
>Is it possible in VFP to pass an object by value as a parameter.

Objects are always passed by reference. I'm not even really sure what passing an object by value would look like.

>I need to build an array of toolbars but I would like to keep a copy of the toolbar object in an array instead of a reference to it. There isn't an object copy function, yet.

Interesting. So you'd have two toolbars instead of one? May I ask why you don't want to use the reference? Just curious.

IAC, back to your question. I presume your toolbars are classes. Does it not work for you to simply tell your toolbar "factory" that you want a new toolbar of class "XYZ" and have it create one for you?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform