Namespaces Collection Methods

This section discusses the Namespaces collection methods in alphabetical order.

Syntax

Item(number)

Description

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

Parameters

Field or Control

Definition

number

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

Returns

A reference to a Namespaces object or NULL.

Example

For &N = 0 to &NAMESPACES.Count - 1
   &NAMESPACE = &NAMESPACES.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 Namespaces object that you want returned. This parameter takes a string value.

Returns

A reference to a Namespaces object or NULL.

Example

&NAMESPACE = &NAMESPACES.ItemByName("BusinessComponent");