PropertyInfo Collection Methods

This section discusses the PropertyInfo collection methods in alphabetical order.

Syntax

Item(number)

Description

The Item method returns a PropertyInfo object that exists at the number position in the PropertyInfo collection executing the method.

Parameters

Field or Control

Definition

number

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

Returns

A reference to a PropertyInfo object or NULL.

Example

For &K = 0 To &PROPERTIES.Count - 1
   &PROPERTY = &PROPERTIES.item(&K);
   &OutTEXT = "             " | &PROPERTY.name | ":  " | &PROPERTY.Type;
   &MYFILE.WriteLine(&OutTEXT);
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 PropertyInfo object that you want returned. This parameter takes a string value.

Returns

A reference to a PropertyInfo object or NULL.

Example

&PROPERTY = &PROPERTIES.ItemByName(“GetHistoryItems”);