ErrorCode Property

Description
Returns the current Controller error code.

Syntax
ReadOnly Property ErrorCode As Integer

Return Value
Integer value containing the error code.

See Also
ErrorOn Property

ErrorCode Example
VB Example:

If m_spel.ErrorOn Then  
    lblErrorCode.Text = m_spel.ErrorCode.ToString()  
Else  
    lblErrorCode.Text = ""  
End If  
  
C# Example:  
if (m_spel.ErrorOn)  
    lblErrorCode.Text = m_spel.ErrorCode.ToString();  
else  
    lblErrorCode.Text = "";