|
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. |
Renames a variable into another one
Rename var1,undefinedvar2
Menu Location
Catalog Menu
This command works on all calculators.
X byte(s)
The Rename command allows you to rename a defined variable to an undefined variable. This is useful if you want to store the value of a variable into another variable, although the Store command is more commonly used for that purpose.
Rename a,bThe above code would run when "a" is a defined variable and "b" is an undefined variable. That means that if both "a" and "b" were defined, or if "a" was undefined and "b" was defined, it would not work (it would give you error 960).You would get an error if you try to redefine an already defined variable.
Advanced Uses
The Rename command can also be used for strings. The below code would store the text in Str1 to "a".
Rename str1,aError Conditions
960 - Undefined variable happens when there is an undefined variable.
270 - Duplicate variable name happens when there is a duplicate variable name.
