InfoObjects Collection

Crystal Enterprise InfoStore Library
See Also  

The InfoObjects collection contains InfoObjects such as Folders, Reports, and Instances, and it has a number of methods to enumerate its contents. This collection is also known as a static Info Collection because it is a snapshot of the query result set. The content of the collection will not change.

Note:    The InfoObject object you get back from the InfoObjects collection should not be released until you are done using any other objects on the InfoObject.

In order to use an InfoObject object call, you would use code like the following:



Dim io as InfoObject

Set io = collection.Item(1)


Dim sched as SchedulingInfo

Dim repProc as Report


Set sched = io

'If you add  Set io = nothing here, the call below will fail.

Set repProc = io



Properties
Property Description

Count Property

The number of InfoObjects in the collection. Read-Only.

InfoStore Property

The parent InfoStore that created this collection. Read-Only.

Item Property

Returns an InfoObject given an index. Read-Only.

ResultCount Property

The total number of objects that match a query.

Methods
Method Explanation

Add Method

Adds an InfoObject.

Copy Method

Copies an InfoObject.

Delete Method

Deletes an item from the collection.



Crystal Decisions, Inc.
http://www.crystaldecisions.com
Support services:
http://support.crystaldecisions.com