GetICReasonCodes

Returns an application’s reason codes and their corresponding IDs and descriptions.

Syntax

<HsvICM>.GetICReasonCodes()

Return Value

Variant. Returns a multidimensional array of the reason codes, IDs, and descriptions. The first dimension contains three items that represent the reason code information, and the second dimension contains one item for each reason code in the application. The following table describes the first dimension:

Index

Description

0

Long. Returns the IDs of the reason codes.

1

String. Returns the reason codes.

2

String. Returns the descriptions of the reason codes.

Example

The following example prints an application’s reason codes and descriptions to Visual Basic’s Immediate window.

Dim cICM As HsvICM, vaRet As Variant
'g_cSession is an HsvSession object reference
Set cICM = g_cSession.ICM
vaRet = cICM.GetICReasonCodes
For i = LBound(vaRet, 2) To UBound(vaRet, 2)
  Debug.Print vaRet(1, i) & ": " & vaRet(2, i)
Next i