PortalRegistry Collection Methods

In this section, we discuss the PortalRegistry collection methods. The methods are discussed in alphabetical order.

Syntax

First()

Description

The First method returns the first PortalRegistry object in the PortalRegistry collection.

Example

&MyRegistry = &MyCollection.First();

Syntax

Item(number)

Description

The Item method returns the PortalRegistry object with the position in the PortalRegistry collection specified by number.

Parameters

Field or Control

Definition

number

Specify the position number in the collection of the PortalRegistry object that you want returned.

Returns

A PortalRegistry object if successful, NULL otherwise.

Example

For &I = 1 to &MyCollection.Count
   &MyRegistry = &MyCollection.Item(&I);
   /* Do processing */
End-For;

Syntax

Next()

Description

The Next method returns the next PortalRegistry object in the PortalRegistry collection. You can use this method only after you have used the First method: otherwise the system doesn’t know where to start.

Example

&MyRegistry = &MyCollection.Next();