|
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. |
Displays a line of text in a dialog box.
Text string of text
Menu Location
Starting in the program editor:
- Press F3 to enter the I/O menu.
- Press 1 to enter the Dialog submenu.
- Press 1 to select Text.
This command works on all calculators.
3 bytes
On its own, the Text command displays a simple dialog box with a line of text (left-aligned) inside. It can also be used inside a Dialog..EndDlog block, to add a line of text to a more advanced dialog.
The text must be a single string; but you can build one out of smaller strings and other data types using the & and string() commands.
Text will give an error if the string is too long — how long varies from model to model, and depending on if Text is being used inside or outside Dialog..EndDlog, but in general anything below 30 characters is safe (otherwise, you should test the dialog first to make sure everything fits). It uses the small, variable-width font on the TI-89 and TI-89 Titanium, and the normal fixed-width font on widescreen calculators.
Advanced Uses
You can add Text "" to a dialog to skip a line between two other elements.
Error Conditions
130 - Argument must be a string happens when Text is used to display other data types without using string() first.
230 - Dimension happens when the line of text is too long to fit in a dialog box.
