HP Forums
program result display - Printable Version

+- HP Forums (https://archived.hpcalc.org/museumforum)
+-- Forum: HP Museum Forums (https://archived.hpcalc.org/museumforum/forum-1.html)
+--- Forum: Old HP Forum Archives (https://archived.hpcalc.org/museumforum/forum-2.html)
+--- Thread: program result display (/thread-252015.html)



program result display - Richard Berler - 10-02-2013

I developed a lotto program. If the display times out with the program result ( my lotto pick ), is there a way to recover the result? I tried copy, but that doesn't take.


Re: program result display - Han - 10-02-2013

You can always create a global variable and store it there. For example,

EXPORT WIN;
EXPORT LOTT()
BEGIN

... YOUR LOTTO PROGRAM HERE ...

WIN:= whatever the winning value is

END;

Now you can get the winning number by typing WIN even after the program finishes. Having no idea how you store your lotto number, a list might be most appropriate.


Re: program result display - Richard Berler - 10-02-2013

Thanks for the tip. Works like a charm!