<< Prev        Next >>

ID : 108

ErrLvl

Function

To return the error level of a designated error.

Syntax

ErrLvl(error code)

Guaranteed entry

Error code
Designate an error code by integer type data.

Return value

Returns integer type data between 0 and 5.

Description

The error level corresponding to a designated error code is returned.

Attention

-

Example

'!TITLE "Acquiring Error Code Level"
' Acquisition of the error level of "Syntax error"
Sub Sample_ErrLvl

  Dim aaa As Integer

  ' Acquisition of error level
  aaa = ErrLvl( &H83500003 )

  ' Display "3" on the message output window
  PrintDbg aaa

End Sub

ID : 108

<< Prev        Next >>