Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing parameter by reference
Message
 
To
06/10/1998 16:40:27
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00144309
Message ID:
00144421
Views:
19
>Hi David,
> Thanks for the tips you sent me. But when I modified the code by including the '@' Visual Foxpro 5 return a syntax error. If I remove the '@' then it is able to compile. Do you know why?
>

Steve,

Because using an @ in the parameters of a DO ... WITH ... command is a syntax error. Parameters are passed by reference with DO ... WITH ... by default. If you want to pass by value then you put parens around the variable name in the WITH ... clause.
Previous
Reply
Map
View

Click here to load this message in the networking platform