|
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. |
Defines a set of lines as executable program code.
Prgm
program code
EndPrgm
Menu Location
Press:
- Catalog ([2nd] + 2 on 92/+/v200) to access the catalog menu
- P to scroll to the P section
- Use arrows to navigate to Prgm
Or type Prgm using the keyboard
This command works on all calculators.
4 bytes
This command is used at the beginning/end of a program to tell the calculator to interpret it as code. Without these commands at the start and end of a program file, the interpreter will pass a syntax error.
:test()
:Prgm
://code to run goes here
:EndPrgmAdvanced Uses
Using the local and define commands, you can create local submethods in your programs. This is more often used with functions, as you can return a value, however you can not display to the IO or draw to the graph screen in functions, so using programs in this way is sometimes useful. Assuming the following code is inside a program block already, the syntax would be:
:Local test
:Define test()=Prgm
://test program code goes here
:EndPrgm