Contents

Category: Objects / Contents
Since engine version: 4.6.5.0 CP (extended in 4.9.10.14 LC [353])

Description

Returns the indicated object contained in pObj.

Syntax

object Contents (int iIndex, object pObj, bool returnAttached);

Parameters

iIndex:
Index of the object in the container, starting with 0
pObj:
Object in which to search. Can be 0 in local calls
returnAttached:
If true objects with procedure ATTACH are returned as well. Since 4.9.10.14 LC [353]

Remark

Warning: Without specifying returnAttached as true objects with procedure ATTACH are skipped. Thus, the result of ContentsCount (without specifying an ID) does not match the number of objects retrievable via Contents().
See also: Contained, ContentsCount, FindContents
springer, April 2002
Der Tod, April 2022