DeleteItem method: PSMessages collection
Syntax
DeleteItem(number)
Description
The DeleteItem method deletes the 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 to delete. All other items within the collection are renumbered. |
Returns
This method returns a Boolean value: True if the PSMessage object was successfully deleted, False otherwise.
Example
&ERROR.DeleteItem(&I);