Menus

A collection of menus.

Methods:

[], anyItem, count, everyItem, firstItem, item, itemByName, itemByRange, lastItem, middleItem, nextItem, previousItem, toSource

Property Listing

Property

Type

Access

Description

length

Number

readonly

The number of objects in the collection.

Method Listing

Menu [] (index:Number)

Returns the Menu with the specified index.

Parameter

Type

Description

index

Number

The index.

Menu anyItem ()

Returns any Menu in the collection.

Number count ()

Displays the number of elements in the Menu.

Menu everyItem ()

Returns every Menu in the collection.

Menu firstItem ()

Returns the first Menu in the collection.

Menu item (index:Varies LongInteger String)

Returns the Menu with the specified index or name.

Parameter

Type

Description

index

LongInteger

String

The index or name. Can accept: Long Integer or String.

Menu itemByName (name:String)

Returns the Menu with the specified name.

Parameter

Type

Description

name

String

The name.

Menu itemByRange (from:Varies LongInteger Menu String, to:Varies LongInteger Menu String)

Returns the Menus within the specified range.

Parameter

Type

Description

from

LongInteger

Menu

String

The Menu, index, or name at the beginning of the range. Can accept: Menu, Long Integer or String.

to

LongInteger

Menu

String

The Menu, index, or name at the end of the range. Can accept: Menu, Long Integer or String.

Menu lastItem ()

Returns the last Menu in the collection.

Menu middleItem ()

Returns the middle Menu in the collection.

Menu nextItem (obj:Menu)

Returns the Menu whose index follows the specified Menu in the collection.

Parameter

Type

Description

obj

Menu

The Menu whose index comes before the desired Menu.

Menu previousItem (obj:Menu)

Returns the Menu with the index previous to the specified index.

Parameter

Type

Description

obj

Menu

The index of the Menu that follows the desired Menu.

String toSource ()

Generates a string which, if executed, will return the Menu.

Object of

Application.menus