I was writing a program in TI-BASIC and i made a Menu but made one of the choices longer than a single line. When i tried to run the program something weird happened and the RAM was cleared and something else happened it involved PRM i think. Now when i use the Menu( function and label the choices and try to End one of the labels the calculator says ERR:SYNTAX.
Labels don't have an accompanying End. The only time you won't get a syntax error by putting an End at the end of a Label's code is when you do a sort of subroutine, such as
Repeat K=45
getKey→K
Disp "MAIN LOOP
If K:Goto H
End //End of Repeat loop
Goto Q //Skip the subroutine
Lbl H
Disp "KEY PRESSED"
End //End of subroutine
Lbl Q
<rest of code>
As for your RAM clearing, I have no clue as to why it did that. It normally just displays an ellipses at column 16, as far as I know.
Projects: BexIDE (hold), Hadean.NET, Legend of Zelda: Link to the Future
I don't have my calc now so i can't just copy and paste the code
but i try to just type it out.
I use Lbls to to help the calc differentiate between different choices
This was the more or less the first version of the program
:Menu("APPHYICS",1,"ANGULAR MOTION ON A PLANE",2,"STUFF") ya i know I spelled physics wrong
:Lbl 1
:ClrHome: Output(1,1,"BLah Blah stuff about angular motion on a plane":PAUSE
:ClrHome: Output(1,1,"More stuff about angular motion on a plane":PAUSE
:ClrHome: Output(1,1,"You get the idea":PAUSE
:END
:Lbl 2
:ClrHome: Output(1,1,"Under construction":PAUSE
:END
The problem started after running this, RAM cleared and PRM messed up i think PRM stands for Parameters
Now I can't END a choice so i just replace it with STOP but it doesn't serves my purposes well enough
Erm, as has already been said (and stated by you), labels don't end with an end. Here is some code that might work better for you:
:Lbl 0
:Menu("APPHYICS","ANGULAR MOTION ON A PLANE",1,"STUFF",2
:Lbl 1
:ClrHome: Output(1,1,"BLah Blah stuff about angular motion on a plane":PAUSE
:ClrHome: Output(1,1,"More stuff about angular motion on a plane":PAUSE
:ClrHome: Output(1,1,"You get the idea":PAUSE
:Goto 0 ;Jumps back to Lbl 0, so it goes to the main menu
:Lbl 2
:ClrHome: Output(1,1,"Under construction":PAUSE
:Goto 0
Z80 Assembly>English>TI-BASIC>Python>French>C>0
@Inastateofpanic!!: What do you mean by "it doesn't serves my purposes well enough"? We can better help you if we know more about what you are trying to accomplish.