Click or drag to resize
TOPICA Basic Class RecordRelationCollection

[This is preliminary documentation and is subject to change.]

RecordRelationCollection is a collection of RecordRelation objects.

Caution note Caution

This class only exists in TOPICA relases 4.24 and newer!

RecordRelationCollection properties

Property

Index Type

Result Type

Description

Count

Integer

Number of objects in the collection

ToString

String

Returns a string representation of all objects in the collection. The recods are separated by Newline.

ToLines

String

Returns a string representation of all the RecordRelation objects in the collection, each line containing the string representation of one RecordRelation object. The lines are separated by Newline.

First

RecordRelation

Returns the first RecordRelation in the collection.

Last

RecordRelation

Returns the last RecordRelation in the collection.

FilterType

String

RecordRelationCollection

Filters the input collection, and returns a collection containing those RecordRelation objects, that have the specified value of RelationType

Example:

Record.RelationsFrom.FilterType("Copy")

Return a collection of RecordRelation objects from Record, that have FilterType value equal to "Copy" (i.e. finds all relations to the record, the current record has been copied to).

RecordRelationCollection indexing

Index type

Description

Integer

Zero-based:

Record.RelationsFrom[0] returns the first RecordRelation object in this collection.