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方法 →