MenuItem (Define Item for Custom Menu)

The MenuItem instruction is used to define the name and associated measurement value for an item in a custom menu.

Syntax

MenuItem ( "MenuItemName", Variable )

Remarks

The MenuItemName parameter is the name that will be displayed on the custom menu for a value. The name is limited to 512 characters, including characters for the associated measurement value. However, its practical size is much less because of the small size of the keyboard display. MenuItemName should be enclosed in quotation marks. The Variable parameter is the variable name of the value to be displayed. Values displayed using MenuItem can be edited, either by typing in a value directly or by creating a pick list of values using MenuPick. (MenuPickis optional, but if used, it must immediately follow the MenuItem for which the list is being generated.)

MenuItem can be used to create a custom menu for changing values in a constant table. Values can be entered by typing them in directly or from a pick list created by using MenuPick. Refer to MenuRecompile for additional information.

NOTE: Use DisplayValue to display data table values or variables that should not be edited.

Parameters

MenuItemName

The name that will be displayed on the custom menu for a measurement or datatable value. The name is limited to 512 characters, including characters for the associated measurement value. However, its practical size is much less because of the small size of the keyboard display. MenuItemName should be enclosed in quotation marks.

Type: Text, Variable, or Constant

MenuVariable

The variable name used in the program for the measurement value that should be displayed.

Type: Variable