Description

Returns the number of dialogs in the collection (all loaded dialogs) or the number of instances of a specific dialog.

Property type

A Long value.  

Syntax

object.Count([Name])

The Count Property syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McCommandDialogs.
NameOptional. A String value.

Identifies a dialog for which the number of instances should be returned.

Remarks

When Name is an empty string, this number represents all the non identical dialogs currently loaded. Otherwise it is the number of active instances.

When an identity is activated for the first time, or after a reset, all the dialogs are loaded in the collection to identify those which are identified as 'startup' and which should be displayed when the program starts. As a result Count will return the total number of installed dialogs.