>>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>)