>Is it possible to return multiple values from a procedure. To get 1 value I do:
>
>myvalue = myprocedure(myparams)
>
>Is there a way to get more that 1 return value? If so, how?
Not directly, however you can use parameters passed by reference using the @ "switch":
x = 10
y = 15
x = MyUDF(x, @y)
? x
? y
FUNCTION MyUDF
LPARAMETERS nFirst, nSecond
nSecond = nSecond * 2
RETURN nFirst + nSecond
HTH!
Sylvain Demers