ObjectList

concerns

The ObjectList attribute function provides a variable list of the Type TCE object pointer from all direct child objects derived from a given class.

 

Syntax

ObjectList(ClassName [, Restriction])

Return value

Type

Description

Object list

The returned object list is Typeless and must therefore be assigned before using a TCE object variable list.

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 Accessory() As ::Accessory, i As Long

Accessory := TV.ObjectList("Accessory", "Price > 1000")

For i := 0 To Accessory.UpBound

   # action to all accessories with price > 1000

EndFor