Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing an Array
Message
From
06/10/2003 18:28:56
 
 
To
06/10/2003 14:41:52
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00835464
Message ID:
00835570
Views:
7
A bit of explanation may help. By default, parameters are passed by reference when making a procedure call:
DO MyProc WITH Var1, Var2
DO MyForm WITH Var3, Var4
and by value when making a function call:
? MyProc(Var1, Var2)
If you want to pass parameters by reference to a procedure call, use parenthesis
DO MyProc WITH (Var1), (Var2)
or with the @ symbol for functions
? MyProc(@Var1, @Var2)
You can switch the defaults globally with SET UDFPARM.


>Hi Sergey,
>
>How simple. Thanks!
>
>Mike
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Reply
Map
View

Click here to load this message in the networking platform