MENUITEM


9.0, PLBCMP GUI Only

square.png Properties

square.png Methods

 

The MENUITEM instruction defines an object variable that is an element of a FLOATMENU, MENU, or SUBMENU. To define a MENUITEM, use one of the following statement formats:

 

(1)

[label]

MENUITEM

[%]

(2)

[label]

MENUITEM

(arraysize)

(3)

[label]

MENUITEM

^

(4)

[label]

MENUITEM

^,{target}

(5)

[label]

MENUITEM

^(arraysize)

(6)

[label]

MENUITEM

^(arraysize),({target}),...,({target})

 

Where:

label

Optional. A Data Label.

%

Optional. Denotes the item as being GLOBAL.

arraysize

Required. An integer decimal constant, CONST variable, or EQUATEd value indicating the number of array items.

^

Optional. Denotes the item as being a POINTER.

target

Required. The name of a previously defined data item of the same type.

Flags Affected: NONE

Note the following:

  1. This object provides access menu elements of a FLOATMENU, MENU, or SUBMENU objects.

  2. This object can be used in GETPROP or SETPROP instructions.

  3. This object cannot be used in a CREATE instruction.

  4. Multi-dimension arrays are supported up to a maximum of fourteen dimensions.

  5. The ^ denotes Pointer Variable.

  6. MENUITEM objects may not be added to a COLLECTION.

  7. Although a MENUITEM may be defined as Global, it is DESTROYed during a CHAIN instruction.

 

 

See Also: Object Definitions, Object Output Instructions

 



PL/B Language Reference MENU MODULE