Share via


xMenuFunction.new Method

Creates a new xMenuFunction object by passing xMenuFunction's name and MenuItemType to the xMenuFunction constructor.

Syntax

public void new(str Name, MenuItemType type)

Run On

Called

Parameters

  • Name
    Type: str
    A string expression that evaluates to the name of the object..
  • type
    Type: MenuItemType Enumeration
    A constant in the MenuItemType system enumeration: MenuItemType::Display, MenuItemType::Output, or MenuItemType::Action.

Remarks

When creating a xMenuFunction object, the parameters must uniquely identify an existing xMenuFunction. If not, Exception::Internal is thrown.

See Also

Reference

xMenuFunction Class