Hi Sergey
>Your code fails during compilation on the second line with message "Missing operand" (VFP8SP1).
Whoops, thank you - the closing bracket is in the wrong place. Try this...
>>
>>PRIVATE puRetVal
>>SQLEXEC( nCon, [EXEC sp_name ?@puRetVal] )
>>
(It was cut down from some more complex production code and I got it wrong - sorry).
----
Regards
Andy Kramek