If you have access to PROC.PRG you can try this.
Proc.prg
function xProxy
lparameter param1
return x(param1)
Function yProxy
lparameter param1
return y(param1)
Main.Prg
set procedure to Proc.Prg additive
lResult = xproxy(Param1)
lResult2 = yProxy(Param1)
Glenn
>I have a program that has two procedures, PROCEDURE x and PROCEDURE y. Both procedures either RETURN .T. or RETURN .F. depending on certain circurmstances in the procedure. I am using the command: DO PROCEDURE x WITH param1 IN proc.prg to call both of my procedures. Is there a way to find out if my procedure returns .T. or .F.? Unfortunately I cannot change the procedure code and I have to use DO PROCEDURE because, in my case, I have to specify the IN clause to tell it where my procedure is. If anyone can help me out I would appreciate it. Thanks.