GetErrorMessage 方法
描述
返回指定错误的错误消息或警告代码。
语法
Function GetErrorMessage (ErrorCode As Integer) As String
参数
- ErrorCode
用以返回相关错误消息的错误代码。
返回值
含有错误消息的字符串。
参阅
ErrorCode 属性
GetErrorMessage 示例
VB 例:
Dim msg As String
If m_spel.ErrorOn Then
msg = m_spel.GetErrorMessage(m_spel.ErrorCode)
MsgBox(msg)
End If
C# 例:
string msg;
if (m_spel.ErrorOn) {
msg = m_spel.GetErrorMessage(m_spel.ErrorCode);
MessageBox.Show(msg);
}
← GetECP 方法 GetIODef 方法 →