First method: PSMessages collection

Syntax

First()

Description

The First method returns the first PSMessage object in the PSMessages collection object executing the method.

Example

&ERROR = &PSMESSAGE.First();