Key Code To Letter

We're glad you came by, but you might find what you're looking for elsewhere.

TI-Basic Developer is not the site it once was. While its information on commands and other calculator features remains almost second-to-none, its forum, archives, and even hosting service, Wikidot, have been decaying for years. The calculator community would love to see what you're working on, or help you in your next coding adventure, but TI-Basic Developer is no longer the place to do it.

Instead, you should head over to Cemetech (primarily American) or TI-Planet (primarily international). Both are active, well-established forums with their own archives, chatrooms, reference material, and abundant coding tools and resources. We'll see you there, we hope.

samplescreenshot.gif

Routine Summary

Outputs a letter corresponding to a keypress.

Inputs

None

Outputs

Ans - the letter as a string

Calculator Compatibility

TI-83/84/+/SE

Authors

Weregoose

URL: Weregoosepage

Download

Routines.8xg

:Repeat Ans>34 and min(Ans≠{44,45,105
:getKey
:End
:sub("ABC**DEFGHIJKLMNOPQRSTUVWXYZθ'* :?",Ans-5int(.1Ans+4),1

The Repeat loop makes sure good input is passed.
The last line takes from the string the letter according to the keycode.

Error Conditions

None.

Related Routines

.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-Noncommercial 2.5 License.