The Item Command


Command Summary

Adds an item to a Custom or ToolBar menu.

Command Syntax

Item text (with Custom)
Item text,label (with ToolBar)

Menu Location

Starting in the program editor:

  • Press F3 to enter the I/O menu.
  • Press 1 to enter the Dialog submenu.
  • Press 8 to select Item.

Calculator Compatibility

This command works on all calculators.

Token Size

3 bytes

The Item command is used in Custom..EndCustm and ToolBar..EndTBar blocks (both of which create toolbar menus) to add an option to one of the tabs. See these commands for more details on how to use it.

Inside a Custom..EndCustm menu, the correct syntax is Item text (text being a string). This will display text for the menu option, and also paste text every time the option is selected.

Inside a ToolBar..EndTBar menu, the correct syntax is Item text,label. This will, as in the previous case, display text for the menu option; when the option is selected, the program will resume running from Lbl label.

Error Conditions

130 - Argument must be a string happens when the option text isn't a string.

500 - Invalid label happens when the label doesn't exist (in this program), when the option is selected.

Related Commands

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