Question: How to get multiple outputs from a procedure?

What is the best way to export/update multiple values from a single procedure? As far as I understand, a procedure does not let you update global values (the inputs), and it returns the value for the last step performed. Let's say for example, I had a procedure like this:


local x,y;

*series of steps that use a,b, and c to calculate x and y*

end proc


How do I get the results for x and y out of the procedure? 



Please Wait...