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:
00144387
Views:
23
Steve,

Sorry for the error. As JimB pointed out DO WITH already sends parameters by reference. You can't alter a constant though like you originally posted you have to pass a memvar. The @ works if you call the code with a function call style:

=ShortMenu( "A", "B", @lnValue )

The = isn't needed if you are VFP5 or 6.

> 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?
>
>>lnValue = 1
>>do shortmenu with "A", "B", @lnValue
>>? lnValue
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform