DisplayValue

The DisplayValue instruction is used to define the name and associated data table value or variable for an item in a custom menu.

Syntax

DisplayValue ( "MenuItemName", MenuExpression )

Remarks

The MenuItemName parameter is the name that will appear on the custom menu. The name should be enclosed in quotation marks. The Expression parameter defines the value from a data table (tablename.fieldname) or variable to be displayed. When displaying a variable from the public table, use the variable name only ("Public" is not needed). Values displayed using DisplayValue cannot be edited.

NOTE: Use MenuItem to display editable variables in a custom menu.

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

MenuExpression

Defines the value from a data table (tablename.fieldname) or variable to be displayed, or any valid expression. When displaying a variable, the table name (public) is not included.

Type: DataTable.Fieldname, Variable, or Expression