TI-89 HomeGames ArchiveTitanium GamesGames How ToProgramsFAQForumTI-89 WikiLinks

Variables and Letters

 
Post new topic   Reply to topic    Your TI-89 Resource Forum Index -> BASIC Programming
Author Message
Budmaster11



Joined: 11 Feb 2007
Posts: 2
Location: Right here.. don't you see?

PostPosted: February 19, 2007 2:33 AM    Post subject: Variables and Letters Reply with quote

Well first let me explain what I am trying to do as it may help- I am trying to make a program that you can enter text into then it converts those letters into numbers then puts them through a formula then converts the numbers back to letters and displays them, then of course I will also have it do the reverse so that you can unscramble it. Basically in case you havn't figured it out, I am making a code creating program thing...

The problem I am having is converting the letters into numbers. I am just trying to do one letter at a time, but I don't know how to make it read the letter as a letter not a variable. This is basically what I have.

Input "Enter letter",a
If a=a
1->a
If a=b
2->a
...
Disp a
pause

But of course it always displays 1. Because it sees that variable "A"= variable "a". Where I need it to thing Variable Letter "A"= Letter "A" or something like that.

Any help is appreciated, and any help on making it proccess an antire work/phrase/sentence at once would be very helpful.
_________________
I really should get a cool signiture...
Back to top
View user's profile Send private message
mark



Joined: 24 Feb 2007
Posts: 27

PostPosted: March 2, 2007 7:17 PM    Post subject: Reply with quote

you might be able to use the "getkey()" command, i havent used it and am not completely sure about how it works, but it allows you to record a numeric code for every key that is pressed, not sure how you would convert it back over

to know how to use it go to page 202 in your manual, or page 825 of the pfd guidebook, which you can get here http://education.ti.com/educationportal/appsdelivery/download/download_select_product.jsp?cid=us&displaymode=G&contentpaneid=17
Back to top
View user's profile Send private message
Display posts from previous:    View previous topic : View next topic  
Post new topic   Reply to topic    Your TI-89 Resource Forum Index -> BASIC Programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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

Contact Us | Privacy Policy | Disclaimer | Trademarks

Copyright ©2006 All rights reserved.


Free Greeting Cards | Girly Myspace Layouts | Myspace Unblocker |