HP Forums
Return: how get two more values and two lines? - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: HP Prime (/forum-5.html)
+--- Thread: Return: how get two more values and two lines? (/thread-3312.html)



Return: how get two more values and two lines? - salvomic - 03-08-2015 10:12 PM

How to get two line in RETURN()?
in #CAS program it works
return a, b, c;
nut with Home programs it doesn't.
I tried \n but no luck...

Thanks in advance!

Salvo


RE: Return: how get two more values and two lines? - Marcus von Cube - 03-08-2015 10:24 PM

(03-08-2015 10:12 PM)salvomic Wrote:  How to get two line in RETURN()?

The only way to return more than one value from a PPL program is to return a list or a vector.


RE: Return: how get two more values and two lines? - salvomic - 03-08-2015 10:35 PM

(03-08-2015 10:24 PM)Marcus von Cube Wrote:  The only way to return more than one value from a PPL program is to return a list or a vector.

understood...

I've more variable, and for now I do so:
Code:

RETURN ("ST ="+ st + " F = "+ f + " μ = " + mm + " σ2 = " + ss);

but there are already too things in a line...
And then, this is a string and I would like to get numerical values.

thanks


RE: Return: how get two more values and two lines? - Tim Wessman - 03-08-2015 10:48 PM

Export the variables by name you'd like the user to have access to directly. Store into those as the last part of your program.


RE: Return: how get two more values and two lines? - salvomic - 03-08-2015 10:51 PM

(03-08-2015 10:48 PM)Tim Wessman Wrote:  Export the variables by name you'd like the user to have access to directly. Store into those as the last part of your program.

ok, thanks, I'll try so.