AvailableCategory Collection Methods
In this section, we discuss the AvailableCategory collection methods. The methods are discussed in alphabetical order.
Syntax
First()
Description
The First method returns the first AvailableCategory object in the AvailableCategory collection.
Parameters
None.
Returns
An AvailableCategory object.
Example
&MyAvailableCategory = &MyCollection.First();
Syntax
ItemByName(Name)
Description
The ItemByName method returns the AvailableCategory object with the name Name.
Parameters
Field or Control |
Definition |
---|---|
Name |
Specify the name of an existing AvailableCategory within the AvailableCategory collection. If you specify an invalid name, the object is NULL. |
Returns
An AvailableCategory object if successful, NULL otherwise.
Example
&MyCat = &MyColl.ItemByName("Dictionary");
Syntax
Next()
Description
The Next method returns the next AvailableCategory object in the AvailableCategory 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
AvailableCategory object.
Example
&MyAvailableCategory = &MyCollection.Next();