The Museum of HP Calculators

HP Forum Archive 21

[ Return to Index | Top of Index ]

program result display
Message #1 Posted by Richard Berler on 2 Oct 2013, 4:15 p.m.

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
Message #2 Posted by Han on 2 Oct 2013, 4:22 p.m.,
in response to message #1 by Richard Berler

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
Message #3 Posted by Richard Berler on 2 Oct 2013, 6:57 p.m.,
in response to message #2 by Han

Thanks for the tip. Works like a charm!


[ Return to Index | Top of Index ]

Go back to the main exhibit hall