Macro Reference — PopupMenu Object — AddPopup Method (PopupMenu Object)

# AddPopup Method (PopupMenu Object)

Adds a new submenu to the end of the menu.

##

### [JavaScript]

    popupmenu.AddPopup( strText, submenu);

### [VBScript]

    popupmenu.AddPopup strText, submenu

## Parameters

strText

Specifies text to display.

submenu

Specifies a separate PopupMenu Object to display as a new submenu.

## Version

Supported on EmEditor Professional Version 5.00 or later.