Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pass array as a parameter
Message
From
16/11/2004 15:35:10
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00961882
Message ID:
00961909
Views:
10
>Hi Fred,
>
>Thanks for your help.
>
>I don't know how to link my previous reply so I'll copy my message here.
>
>I experimented a bit further and oddly enough I noticed that the command
>
DO FORM OrderSelect WITH -1, laOrderIDs
>does actually pass the whole array. That’s good but I thought it didn’t work this way. Is this reliable?

Yes. Parameters are pass to DO type commands by reference by default. If you need to pass as a value, enclose the parameter in parenthesis. Parameters passed to functions are passed by value by default. That's why if you need a parameter to be by reference to a function, you need to precede it with "@".
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform