Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing array's by reference
Message
From
15/07/2003 19:59:50
 
 
To
15/07/2003 19:32:05
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00810463
Message ID:
00810487
Views:
16
>hello Fred.
>
>Thanks for your reply.
>
>well, i guess i got to do it that way then. is this a vfp6 problem, or has vfp8 the same rules?
>
>
>
>>Can't do it that way. Properties are always passed by value, you can't pass them by reference. What you can do is just pass an object reference as one of the parameters, and then pass the property names as additional parameters.

Same rules for VFP8. Another way you could do it is to create a bunch of local arrays, pass those by reference to your method, and then copy them to the property arrays once you've returned.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform