Description

Creates a new menu item and adds it to the menu.

Syntax

Add( Text, OnClick, Reserved, Seperator )

Parameters

Text - An optional string value specifying the caption of the menu item.

OnClick - An optional string value specifying the event handler that is called when the menu item is clicked by the user.

Reserved - Reserved for future use. Use a null value or "".

Seperator - An optional string value specifying whether a menu seperator is placed before the menu item. Use "-" to specify that a seperator is to be placed before the menu item.

Return Value

A MenuItem that represents the menu item being added to the collection.

See Also

Applies To: MenuItemCollection


The CHM file was converted to HTML by chm2web software.