Example: Referencing a Pull-Down or Cursor Submenu

The following example grays out menu POP3, item 4.

$P3.4=~

The following example adds a check mark to menu POP7, item 1.

$P7.1=!.

The following example removes any grayed-out or marked character from menu POP7, item 1.

$P7.1=

Menu items are referenced by their number so that they can be queried or set. Menu item numbering is consecutive without regard to the hierarchy of the menu file. Numbering is assigned according to the item's location in the menu section and is not based on where the menu appears on the screen. Menu item numbering corresponds to its hierarchy when the menu has no submenus; however, when it has submenus, its numbering does not correspond to its hierarchy, as shown in the following example.

Menu Code

***POP4

[Title]

[Item 1]

[Item 2]

[->Item 3]

[Item 4]

[Item 5]

[<-Item 6]

[Item 7]

[Item 8]

On-Screen Appearance

-------------------

Title

-------------------

Item 1

Item 2

Item 3 >

Item 7

Item 8

-------------------

To make it easy for an item to address itself without regard to location in the menu hierarchy, the following forms are also allowed:

$P@.@=xxx References the current or most recently selected menu item.

$P@.n=xxx References item n in the current or most recently chosen menu.