cmd_get_name()

Retrieves the command name for a given command ID.

Syntax

cmd_get_name(command_id)

Parameters

Parameter Type Description
command_id Number The ID of the command to look up.

Return Value

Examples

Get the name of a command by its ID

cmd_get_name(4);  // returns "File.Open_..." the name of command ID 4
Get the name of an invalid command ID
cmd_get_name(9999);  // returns None

See also

cmd_list
cmd_count

cmd_get_id
cmd_get_name
cmd_get_displayname

cmd_is_enabled
cmd_is_checked

cmd_exec