Edit

AppendPopupItems (windowRef, itemID, itemString)

Result Type:  none

Definition:  Adds items to the popup menu control with id itemID as specified by the itemString. The string should be a semicolon-delimited list of item names. Any item name beginning with a ( will be disabled. Use (- for a separator item.

Example:  AppendPopupItems(windowRef, "M_MYPOPUP", "Item one;Item two;(-;(Disabled;(-;Last")

If the item string is "#PER" the menu will be populated with periods.

If the item string is "#COLOUR" you will get a colour menu (using the transaction colour names by default). For a colour menu using the custom colour names for a particular table, append the table name after a colon. e.g. "#COLOUR:account"

Availability:  available within MWScript handlers.

See Also:

DeletePopupItems: Remove items from a popup menu