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);
}