ClassInfo Collection Methods
This section discusses the ClassInfo collection methods in alphabetical order.
Syntax
Item(number)
Description
The Item method returns a ClassInfo object that exists at the number position in the ClassInfo collection executing the method.
Parameters
Field or Control |
Definition |
---|---|
number |
Specify the position number in the collection of the ClassInfo object that you want returned. |
Returns
A reference to a ClassInfo object or NULL.
Example
For &N = 0 to &CLASSES.Count - 1
&CLASS = &CLASSES.Item(&N);
/* do processing */
End-For;
Syntax
ItemByName(name)
Description
The ItemByName method returns the item specified by name. Name is not case-sensitive.
Parameters
Field or Control |
Definition |
---|---|
name |
Specify the name of the ClassInfo object that you want returned. This parameter takes a string value. |
Returns
A reference to a ClassInfo object or NULL.
Example
&CLASS = &CLASSES.ItemByName("ABS_HIST");