GetErrorMessage Method

Description
Returns the error message for the specified error or warning code.

Syntax
Function GetErrorMessage (ErrorCode As Integer) As String

Parameters

  • ErrorCode
    Error code that returns an error message

Return Value
String containing the error message.
See Also
ErrorCode Property

GetErrorMessage Example
VB Example:

Dim msg As String  
  
If m_spel.ErrorOn Then  
  msg = m_spel.GetErrorMessage(m_spel.ErrorCode)  
  MsgBox(msg)  
End If  

C# Example:

string msg;  

if (m_spel.ErrorOn) {  
	msg = m_spel.GetErrorMessage(m_spel.ErrorCode);  
	MessageBox.Show(msg);  
}