>Can someone give me an example of how to pass variables back to the the calling program. I can pass variables to the program with do with command and LPARAMETERS in the called program. But when I use the return command with the variable in it my program that it returns to doesn't see the variables. Does the next statment after the do command have to have Lparameters in it?
>
> Kelly
Kelly,
You can not use the DO ... WITH syntax when you want a return value. Call the program using the function syntax.
myvar = program1(myvariable)
The return value will be stored in myvar.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao