CommandCollection.Count

Description

Returns a Long representing the total number of Command objects in the collection.

C# Syntax

// get accessor
Int32 rtn = CommandCollection.Count;

Examples

VBScript Example

set oCommands = Application.Commands
logmessage "There are " & oCommands.Count & " command(s) in the collection"

See Also

Command Application