21tmccauley wrote:
In the editor on the computer, what do I use to store something? When use >,->, or anything else, it doesn't work.
Code: ->
should work, both in the TI-Connect CE editor and in SC3.
What is an invalide token? When I went to save my program, it said it had an invalid token, and could not save.
PT_ wrote:
21tmccauley wrote:
In the editor on the computer, what do I use to store something? When use >,->, or anything else, it doesn't work.
Code: ->
should work, both in the TI-Connect CE editor and in SC3.
-> will not work in TI-Connect CE's editor, at least from my experience. You have to go to the left hand side, double click keypad, and scroll to the store char. You double click on it to insert it into the program. Same with other tokens.
How does the check function in the source coder work?
21tmccauley wrote:
How does the check function in the source coder work?
You click on it and it'll check for errors in your code.
jcgter777 wrote:
21tmccauley wrote:
How does the check function in the source coder work?
You click on it and it'll check for errors in your code.
No, it doesn't check for syntax errors or anything like that. It just checks if it can be exported (downloaded) properly.
In this line:
Code:
Disp "Welcome to your life.",”First things first”
It says the second "first" has an error. What is wrong with it?
21tmccauley wrote:
In this line:
Code:
Disp "Welcome to your life.",”First things first”
It says the second "first" has an error. What is wrong with it?
Those quotes are not quotes.
How do you check to see if a variable is equal to a string? I tried
Code:
Disp "What is your number?"
Input ">",Str3
randInt(1,300)->N
If inString(Str3 =N:Then
Disp "You won"
Else
Disp "You lost all your money","and are forced to live","on the streets"
and numerous other variations, but everything I tried resulted in an error.
21tmccauley wrote:
How do you check to see if a variable is equal to a string? I tried
Code:
Disp "What is your number?"
Input ">",Str3
randInt(1,300)->N
If inString(Str3 =N:Then
Disp "You won"
Else
Disp "You lost all your money","and are forced to live","on the streets"
and numerous other variations, but everything I tried resulted in an error.
I don't know if this would work, but you could store N into Str0, and check if Str3=Str1.
jcgter777 wrote:
21tmccauley wrote:
How do you check to see if a variable is equal to a string? I tried
Code:
Disp "What is your number?"
Input ">",Str3
randInt(1,300)->N
If inString(Str3 =N:Then
Disp "You won"
Else
Disp "You lost all your money","and are forced to live","on the streets"
and numerous other variations, but everything I tried resulted in an error.
I don't know if this would work, but you could store N into Str0, and check if Str3=Str1.
I tried
Code:
Disp "What is your number?"
Input ">",Str3
randInt(1,300)->N
N->Str5
If inString(Str3,=String5):Then
Disp "You won"
Else
Disp "You lost all your money","and are forced to live","on the streets"
And that just leads to a data type error.
My bad. Try storing rand to a string.
EDIT: You can just check if N= another variable like L.
Code: Disp "What is your number?"
Input ">",A
randInt(1,300)->N
If N=A:Then
Disp "You won"
Else
Disp "You lost all your money","and are forced to live","on the streets"
End
jcgter777 wrote:
My bad. Try storing rand to a string.
EDIT: You can just check if N= another variable like L.
Code: Disp "What is your number?"
Input ">",A
randInt(1,300)->N
If N=A:Then
Disp "You won"
Else
Disp "You lost all your money","and are forced to live","on the streets"
End
Works great! thanks for the advice.
When I try to Export my program for the SourceCoder 3 and put It on my ti 84 plus ce, it says it wasn't made for that calculator.
Uh, I've never had that happen to me before. Are you sure you have the most recent OS? Press [2nd]>[+]>[1] to see if you have OS 5.3 (the latest). If you don't, you can get it from TI's website
here.
Be sure to select the proper option:
21tmccauley wrote:
In the editor on the computer, what do I use to store something? When use >,->, or anything else, it doesn't work.
Depends on what editor you are using.
In Sourcecoder, use "->"
In TI-Connect CE, use the side menu to select the store key from "keypad"
How would you display text, and then have it stay until enter is pressed?
21tmccauley wrote:
How would you display text, and then have it stay until enter is pressed?
The Pause command can take an extra argument to do just that It can display some text, and then pause as it would normally, after which you can ClrHome to erase it as soon as enter is pressed.
Code: Pause "Text"
ClrHome
If you are doing it on the graph screen however, it would be slightly different, you would have to explicitly wait for enter to be pressed like so:
Code: DelVar KText(1,1,"TEST"
Repeat K=105
getKey->K
End
ClrDraw
That will set K to 0, then display your text, then wait for Enter to be pressed (the key code for enter is 105), then clear the graph screen.
mr womp womp wrote:
If you are doing it on the graph screen however, it would be slightly different, you would have to explicitly wait for enter to be pressed like so:
Code: DelVar KText(1,1,"TEST"
Repeat K=105
getKey->K
End
ClrDraw
That will set K to 0, then display your text, then wait for Enter to be pressed (the key code for enter is 105), then clear the graph screen.
If you don't want to mess everything up with ClrDraw, you can do:
Code: DelVar KText(1,1,"TEST"
Repeat K=105
getKey->K
End
Text(1,1,"However many chars you need to erase text"
You can still use Pause on the graphscreen. Just delete DelVar K, and replace Repeat K=105 and geykey->K with Pause.
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.
»
Go to Registration page
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum