TI 83/84
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   Dev Hardware ForumsSOFTWARETI 83/84

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Hardware Forums Sponsor:
  Trader Rating: 0 · #1  
Old March 12th, 2008, 10:51 AM
rabidsnakemonky's Avatar
rabidsnakemonky rabidsnakemonky is offline
n00b DevH'er
Dev Hardware Newbie (0 - 499 posts)
 
Join Date: Mar 2008
Posts: 3 rabidsnakemonky User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 42 m 6 sec
Reputation Power: 0
Variable strings

I am working on a calculator game in its BASIC code (although, like most things I’ve tried, it will probably fail)
It get this to work well, though, I need to be able to have a variable choose which string to use

More specifically, I need to get numbers from a list and display that string. For example:
L1 ------> Display
6 ------> Str6
1 ------> Str1
2 ------> Str2
4 ------> Str4
3 ------> Str3

Unfortunately, there doesn’t seem to be a function like StrX on the calculators. Any advice would be much appreciated.

Reply With Quote
  Trader Rating: 0 · #2  
Old March 12th, 2008, 10:58 AM
rabidsnakemonky's Avatar
rabidsnakemonky rabidsnakemonky is offline
n00b DevH'er
Dev Hardware Newbie (0 - 499 posts)
 
Join Date: Mar 2008
Posts: 3 rabidsnakemonky User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 42 m 6 sec
Reputation Power: 0
now that i think about it, i should have probably put this in the sticky post above sorry

Reply With Quote
  Trader Rating: 0 · #3  
Old March 13th, 2008, 09:05 PM
skipperwarlock skipperwarlock is offline
Contributing User
Dev Hardware Newbie (0 - 499 posts)
 
Join Date: Oct 2007
Posts: 39 skipperwarlock User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 36 m 37 sec
Reputation Power: 1
Just use IF statements.
Maybe get the number off the list and store it on a variable: A
Code:
:IF A=1:THEN:Output(1,1,str1):END

or something along those lines.

Reply With Quote
  Trader Rating: 0 · #4  
Old March 16th, 2008, 09:43 AM
rabidsnakemonky's Avatar
rabidsnakemonky rabidsnakemonky is offline
n00b DevH'er
Dev Hardware Newbie (0 - 499 posts)
 
Join Date: Mar 2008
Posts: 3 rabidsnakemonky User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 42 m 6 sec
Reputation Power: 0
Quote:
Originally Posted by skipperwarlock
Just use IF statements.
Maybe get the number off the list and store it on a variable: A
Code:
:IF A=1:THEN:Output(1,1,str1):END

or something along those lines.


i was thinking that, but it would take hundreds of lines of code to do that for every row on the calculator. but its probably the best answer

Reply With Quote
  Trader Rating: 0 · #5  
Old March 16th, 2008, 09:55 AM
archnaid's Avatar
archnaid archnaid is offline
Moderator
Dev Hardware Expert (3500 - 3999 posts)
 
Join Date: Feb 2004
Posts: 3,910 archnaid User rank is General 24th Grade (Above 100000 Reputation Level)archnaid User rank is General 24th Grade (Above 100000 Reputation Level)archnaid User rank is General 24th Grade (Above 100000 Reputation Level)archnaid User rank is General 24th Grade (Above 100000 Reputation Level)archnaid User rank is General 24th Grade (Above 100000 Reputation Level)archnaid User rank is General 24th Grade (Above 100000 Reputation Level)archnaid User rank is General 24th Grade (Above 100000 Reputation Level)archnaid User rank is General 24th Grade (Above 100000 Reputation Level)archnaid User rank is General 24th Grade (Above 100000 Reputation Level)archnaid User rank is General 24th Grade (Above 100000 Reputation Level)archnaid User rank is General 24th Grade (Above 100000 Reputation Level)archnaid User rank is General 24th Grade (Above 100000 Reputation Level)archnaid User rank is General 24th Grade (Above 100000 Reputation Level)archnaid User rank is General 24th Grade (Above 100000 Reputation Level)archnaid User rank is General 24th Grade (Above 100000 Reputation Level)archnaid User rank is General 24th Grade (Above 100000 Reputation Level)  Folding Points: 527876 Folding Title: Super Ultimate Folder - Level 2Folding Points: 527876 Folding Title: Super Ultimate Folder - Level 2Folding Points: 527876 Folding Title: Super Ultimate Folder - Level 2Folding Points: 527876 Folding Title: Super Ultimate Folder - Level 2Folding Points: 527876 Folding Title: Super Ultimate Folder - Level 2Folding Points: 527876 Folding Title: Super Ultimate Folder - Level 2Folding Points: 527876 Folding Title: Super Ultimate Folder - Level 2
Time spent in forums: 1 Month 4 Days 8 h 6 m 4 sec
Reputation Power: 2557
Does TI-BASIC not have array functionality? Then you could use any number of loops to control the output.


Short of that, anything like a switch structure?

[Edit] It looks like matrices and lists, which the calculator has native support for, can be used much like arrays. You just need to experiment to see whether or not a matrix or list can be used to store strings.

Reply With Quote
  Trader Rating: 0 · #6  
Old April 2nd, 2008, 07:53 AM
MrLarkins's Avatar
MrLarkins MrLarkins is offline
The HS Math Teacher
Dev Hardware Newbie (0 - 499 posts)
 
Join Date: Oct 2007
Location: Central Arkansas
Posts: 46 MrLarkins User rank is Corporal (100 - 500 Reputation Level)MrLarkins User rank is Corporal (100 - 500 Reputation Level)MrLarkins User rank is Corporal (100 - 500 Reputation Level)MrLarkins User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 8 h 12 m 20 sec
Reputation Power: 2
Send a message via ICQ to MrLarkins
A matrix is a 2 dimensional array. You can display, define, a matrix in the matrix editor. The TI83+ and TI84 have 10 matrix variables, [A] thru [J]. You can define a matrix directly in an expression. A matrix, depending on available memory, can have up to 99 rows and columns. However, you can store only REAL numbers in the matrices.

Reply With Quote
  Trader Rating: 0 · #7  
Old April 25th, 2008, 12:33 PM
pwnz32 pwnz32 is offline
n00b DevH'er
Dev Hardware Newbie (0 - 499 posts)
 
Join Date: Dec 2007
Posts: 15 pwnz32 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 1 m 37 sec
Reputation Power: 0
Just write the code out, its slow but it's a lot faster than anything else.

Reply With Quote
Reply

Viewing: Dev Hardware ForumsSOFTWARETI 83/84 > Variable strings


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway