AvailablePagelet Collection Methods
In this section, we discuss the AvailablePagelet collection methods. The methods are discussed in alphabetical order.
Syntax
First()
Description
The First method returns the first AvailablePagelet object in the AvailablePagelet collection.
Parameters
None.
Returns
An AvailablePagelet object.
Example
&MyAvailablePagelet = &MyCollection.First();
Syntax
ItemByName(Name)
Description
The ItemByName method returns the AvailablePagelet object with the name Name.
Parameters
Field or Control |
Definition |
---|---|
Name |
Specify the name of an existing AvailablePagelet within the AvailablePagelet collection. If you specify an invalid name, the object is NULL. |
Returns
An AvailablePagelet object if successful, NULL otherwise.
Example
&MyPagelet = &MyColl.ItemByName("DICTIONARY");
Syntax
Next()
Description
The Next method returns the next AvailablePagelet object in the AvailablePagelet collection. You can use this method only after you have used the First method: otherwise the system doesn’t know where to start.
Parameters
None.
Returns
AvailablePagelet object.
Example
&MyAvailablePagelet = &MyCollection.Next();