HP Forums

Full Version: program result display
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

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.

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.

Thanks for the tip. Works like a charm!