0 Members and 1 Guest are viewing this topic.
I don't mean if X=1, "one" will be Srting1I mean if X=12, "12" will be Str1Isn't that possible?
:{0,1→L₁:{0,N→L₂:LinReg(ax+b) Y₁:Equ►String(Y₁,Str1:sub(Str1,1,length(Str1)-3→Str1
Is it possible to save a Var (for example X or A) in textmode as an String or to get a Number out of a String and save it in a Var??
det(1,X)→Str1
FIRST QUESTION: Is it possible to use the Goto( command, but not as Goto( 1 I mean if X is 2, it will be Goto( 2 and if X is 7, it will be Goto( 7SECOND QUESTION: Is it possible to combine the Goto( command with a String? For Example: If Str1="AB" it will be Goto( AB and if Str1="B4" it will be Goto( B4Is One ot them possible?
:Goto 1 \\The reason I have you jump over the first two lines is so that [Free Line] is always 3. :LBL 0: \\This is your "Free Line" used as a temporary space to store your temporary code.:LbL 1:[Code]:det(8,"[Prgm Name Without Prgm Token]","Goto " +[String],[Free Line]:Goto 0:[More Code]
:Goto 1 \\This is so that Free Line will always be 3.:LBL 0: \\Free Line to be left blank. :Lbl 1: \\Start of your code :):"11"→Str1:det(8,"TESTPRGM","Goto "+Str1,3 \\This creates the Goto code on line 3 in prgmTESTPRGM.:Goto 0 \\Jump to the code you just generated.::Lbl 11:Pause "Blah Blah Blah"
:Goto 1 \\The reason I have you jump over the first two lines is so that [Free Line] is always 3. :LBL 0: \\This is your "Free Line" used as a temporary space to store your temporary code.:LbL 1:[Code]:det(8,"[Prgm Name Without Prgm Token]","Goto " +det(1,[Real Var]),[Free Line]:Goto 0:[More Code]
:Goto 1 \\This is so that Free Line will always be 3.:LBL 0: \\Free Line to be left blank. :Lbl 1: \\Start of your code :):randInt(11,13→X \\Generates a random number from 11-15 and stores it to X.:det(8,"TESTPRGM","Goto "+det(1,X),3 \\This creates the Goto code on line 3 in prgmTESTPRGM.:Goto 0 \\Jump to the code you just generated.::Lbl 11:Disp "You got eleven!":Return:Lbl 12:Disp "You got 12!":Return:Lbl 13:Disp "You got XIII!":Return