Beschreibung:
Gibt die Fehlermeldung des Datenbankservers, -clients oder des Betriebssystems zurück.
Typ:
Long
Beispiel VBScript:
Dim oOLEError : Set oOLEError = <Object>.LastError ' DocMngr, EmailTool*, SQLShell
Dim nErrorCode : nErrorCode = oOLEError.ErrorCode
Dim sErrorAppendix : sErrorAppendix = oOLEError.ErrorAppendix
Dim sErrorText : sErrorText = oOLEError.ErrorText
Dim nNativeCodeError : nNativeCodeError = oOLEError.NativeErrorCode
Call cRM.DialogMessageBox("Bitte beachten Sie folgende Informationen: " & vbCrLf & "Fehlercode: " & CStr(nErrorCode) & " (Nativer Fehlercode: " & CStr(nNativeCodeError) & ")" & vbCrLf & "Fehlermeldung: " & sErrorText & vbCrLf & "Zusätzliche Fehlerinformationen: " & sErrorAppendix, "OLEError", vbOkOnly)
Set oOLEError = Nothing
Beispiel C#-Script:
OLEError error = <Object>.LastError; // DocMngr, EmailTool*, SQLShell
long errorCode = error.ErrorCode;
string errorAppendix = error.ErrorAppendix;
string errorText = error.ErrorText;
long nativeErrorCode = error.NativeErrorCode;
cRM.DialogMessageBox("Bitte beachten Sie folgende Informationen: " + System.Environment.NewLine + "Fehlercode: " + errorCode.ToString() + " (Nativer Fehlercode: " + nativeErrorCode.ToString() + ")" + System.Environment.NewLine + "Fehlermeldung: " + errorText + System.Environment.NewLine + "Zusätzliche Fehlerinformationen: " + errorAppendix, "OLEError", 0);
error.Dispose();