CommandList_Add()

Examples


The CommandList_Add() function adds a command or another command list to the specified command list.

Syntax

CommandList_Add(command_list_tag, added_item {, position})

Parameters

command_list_tag – The integer tag value specifying the command list to which a command or command list is being added.

added_item – The integer tag value for the command or command list to be added.

position – An optional integer that specifies the location of the new item. The value 1 indicates the first position. The value 0 indicates the end of the command list.

Return value

An integer specifying the position to which the item was added to the command list.

Comments

The command that defines the command list must already be defined in the application. The form that contains the definition of the command list must be open when the command list is used.


Documentation Feedback