Ti-83 Programming Tutorials

Home About Projects Links Tutorials

Chapter 11 - Strings

We've used strings before in previous chapters, but do we really know what strings can do? We've already seen a few functions for strings, like the sub and concatenation (adding together) function, and with those we've been able to do some pretty nifty thing (like outputting who won in a game a tic-tac-toe).

Here are some other strings functions and their usages (there a few more string functions, but they aren't really necessary right now; take a look at the Ti-83 manual for more information):
inString(
inString(string,substring,[start]) - Return a substring's location in a string, or 0 if the substring doesn't exist in the string; start position to begin the search in the string is optional and defaulted to 1.
sub(
sub(string,start,length) - Returns a sub-string of a string. String is the string, start is the string location to begin the sub-string with, length being how many characters (to the right) to be included in the sub-string.
Concatenation (+)
Concatenation is simply adding two or more strings together.


This site best viewed in Microsoft Internet Explorer (6.0+).
Copyright 2003 by Lue Her and Andy Becker.
1