>>>Hi all!
>>>I have 2 prg's called 'A' and 'B'. 'A' runs first and calls 'B' with a parameter. When 'B' has finished running, it has a returning value.
>>>I have no idea how to passed this value back to 'A'.
>>>Thanks,
>>>Tamas
>>
>>
>>lvReturned = b(param1, param2, param3)
>>
>>* b.prg
>>LPARAMETERS p1, p2, p3
>>...
>>RETURN lvRetVal
>>
>
>Thanks Sergey!
>Is it possible to use the 'do' command like this 'do a.prg with param' and receive the returning value?
>
>Tamas
No. Only if you pass it by reference and receive as a parameter. DO doesn't allow to return value.
If it's not broken, fix it until it is.
My Blog