Item method: PSMessages collection

Syntax

Item(number)

Description

The Item method returns a PSMessage object that exists at the number position in the PSMessages collection executing the method

Parameters

Parameter Description

number

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

Returns

A reference to a PSMessage object, NULL otherwise.

Example

&PSMSGCOL = &SESSION.PSMessages;
For &I = 1 to &PSMSGCOL.Count;
   &PSMESSAGE = &PSMSGCOL.Item(&I);
   /* do error processing */
End-For;