Item

ACCPAC Common Controls

AccpacErrors.Item

Returns an error message based on its 0-based index in the collection.

Function Item(Index As Long) As String
(default)

Parameters

Item

[in] the 0-based index of the error message in the collection

Return Value

Returns the error message at he specified index. To obtain other information about the error, such as the source or error code, use Get.

Remarks

Because the Item method is the default method of this collection, you do not have to specify "Item." For example, the following syntax forms are interchangeable:

Errors.Item(0)
Errors(0)

Example

Refer to the example in the Clear method.