Duane, you also have the option of declaring a variable before calling the procedure and using that variable as a return variable.

SET VAR vTextValue TEXT
CALL Procedure()
-- in the procedure update vTextValue to the correct reply, and on the return line of the procedure
RETURN .vTextValue

In the other procedure, use an integer variable.

Hope that helps!
Albert

Heffelfinger, Duane wrote:
Good morning,

As usual I'm probably missing something very simple here, but I've had
some trouble running procedures one after another due to the STP_RETURN
variable.  Basically what happens is:

Procedure 1 returns an INTEGER
Procedure 2 returns a TEXT

When I run procedure 2 it fails because procedure 1 created the variable
STP_RETURN as integer.
While I think there are two simple answers:

1. CLEAR VAR STP_RETURN before I run any procedure
2. Have all procedures return a value of TEXT (????) to ensure a large
enough text variable for any procedure

My question is:  What is the best practice or am I missing something
easier?

Duey





Reply via email to