Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to return a value of .F. to a program
Message
From
11/12/2006 14:46:58
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01176571
Message ID:
01176647
Views:
7
>>I do not see a response for "Gregory".
>>
>>>
>>>Local llDoAlloc
>>>     .
>>>     .
>>>llDoAlloc	= .T.
>>>doalloc(lcCxfer , lcOS , @llDoAlloc)
>>>
>>>
>>>Check Gregory's answer.
>
>Message #1176599
>
>Gregory reminds me that passing parameters by reference is not allowed in DO ... syntax (I don't know why :-)
>And because I never use that syntax I didn't bother to remember that :-) Sorry for misleading you.

DO parameters are by reference. You need to enclose parameters in a DO with parenthesis "()" to pass by value. Function parameters are passed by value and need the "@" to pass by reference. And then there's SET UDFPARMS (anybody that changes this setting should be SHOT, unconditionally <g>)
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform