ObjectCount

concerns

The ObjectCount attribute function returns the number of all direct child objects derived from a given class name and optionally given filter expression.

 

Syntax

ObjectCount(ClassName [, Restriction])

Return value

Type

Description

Long

Number of objects found

Parameter

Use

Name

Type

Passing

Description

Required

ClassName

String

ByVal

The class name from which all objects must be derived

Optional

Restriction

String

ByVal

Restrictive expression that evaluates for each object that matches the ClassName parameter.

 

 

Example

 

Dim i As Long

i := TV.ObjectCount("Accessories", "Price > 1000")