This is an archived, read-only copy of the United-TI subforum , including posts and topic from May 2003 to April 2012. If you would like to discuss any of the topics in this forum, you can visit Cemetech's
TI-BASIC subforum. Some of these topics may also be directly-linked to active Cemetech topics. If you are a Cemetech member with a linked United-TI account, you can link United-TI topics here with your current Cemetech topics.
TI-Basic =>
TI-BASIC
Author |
Message |
|
62 52 53 53 Formerly known as 62 52 53 53
Active Member
Joined: 30 May 2003 Posts: 607
|
Posted: 16 Jun 2003 06:35:52 pm Post subject: |
|
|
Do you want a list and a string, or just a list?
list and string is two vars instead of one, but just a list takes up more memory.
Last edited by Guest on 16 Jun 2003 06:36:43 pm; edited 1 time in total |
|
Back to top |
|
|
Spyderbyte
Advanced Member
Joined: 29 May 2003 Posts: 372
|
Posted: 16 Jun 2003 09:47:46 pm Post subject: |
|
|
5->dimLHIGH
If Str0=""
":"->Str0
program code
If S>LHIGH(5
Then
Disp "New High Score!"
Input "Initials: ",Str1
If Str1=""
" "->Str1 ;Three spaces
For(A,1,5
If S>LHIGH(A
Then
For(B,A,4
LHIGH(B->LHIGH(B+1
End
S->LHIGH(A
sub(Str0,1,3A-2)+Str1+sub(Str0,3A-1,3(5-A)->Str0
End
End
End
And then to display:
Text(0,0,"High Scores:"
For(A,1,5
Text(10A,0,LHIGH(A)
Text(10A,20,sub(Str0,3A-2,3
End
I haven't actually tested this, but it looks like it should work. I think I could seperate the names with colons so it wouldn't matter how long a name is, but I can't guarantee anything. (Just hope no one enters ":a:" or something )
Hope this helps!
Spyderbyte |
|
Back to top |
|
|
|
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