Re: Flags in TI Basic
[Prev][Next][Index][Thread]
Re: Flags in TI Basic
I imagine they expected us to use variables. You can store a number into,
say, X. Then you can check X later to see what happened before.
Menu(1,one,O,2,two,T)
Lbl O
1->x
Goto A
Lbl T
2->x
Lbl A
If X==1
Disp "You chose One"
If X==2
Disp "You chose Two"
Seems to me this works as well as the old flag system.
>Suppose the user is asked to make a menu choice between two options, and
>suppose that later in the program, much later, it is necessary to know what
>that choice was. Ordinarily a flag would be set at the time the choice was
>made. This flag could later be tested to find out what that choice was.
>
>To this writer, flags are an absolutely essential item in a calculator
>programming language, and yet, I note they have not been provided in the
>TI-85/86. Even today, Hewlet Packard still provides flags in their
>programmable calculaters.
>How did the developers of the TI-85/86 intend this situation to be handled
>without flags?