Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to return a value of .F. to a program
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01176571
Message ID:
01176648
Views:
6
>>>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>)

:o)))))
Agree
As I said, I never use DO syntax, so I didn't knew that. Thank you Fred.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Reply
Map
View

Click here to load this message in the networking platform