Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to return a value of .F. to a program
Message
From
14/12/2006 12:58:58
 
 
To
14/12/2006 09:32:44
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01176571
Message ID:
01177678
Views:
7
>What I changed was
>
>DO pgmname parm1, parm2, @parm3
>
>to
>
>DO pgmname parm1, parrm2, parm3
>
>In pgmnameI set parm3 and test the result in the calling program. It appears to work.
>
>>>My problem was the @ in front of the field name. When I change @parm3 to parm3 in my do command it worked.
>>>
>>>Thanks to every one who help.
>>
>>If it was a field name, you'd have had that problem even in a function call. You can only pass by reference a variable, not a field.

That's because as a "DO", the parameter is already by reference. If it was a function call "pgmname(parm1,parm2,@parm3)", it would need the "@" to make it a by reference call. Still can't add the "@" if it's a field, only if it's a variable.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform