DO MyProc WITH Parm1, Parm2I would not get a return value. The parameters, by default, are passed by reference. To pass Parm1 by value, I would make the call:
DO MyProc WITH (Parm1), Parm2 <pre> If I make the call as <pre> RetVal = MyProc(Parm1, Parm2)the parameters are passed by value. To pass Parm1 by reference, the call would look like:
RetVal = MyProc(&Parm1, Parm2)The function may or maynot return a value. If you don't specify a return value in the function code, it will return .T. I can also ignore any return value and make the call like this
MyProc(Parm1, Parm2)Finally, you can change the way parameters are passes with SET UDFPARMS. Note this is a global setting.
myProcedure(param)
>