Fix stupid errors
This commit is contained in:
parent
118f334274
commit
35833e8647
@ -230,10 +230,10 @@ Public Class ClassWindream_allgemein
|
||||
Public Function NormalizePath(Path As String)
|
||||
Dim oNormalizedPath As String
|
||||
|
||||
If Path.StartsWith("\") Then
|
||||
oNormalizedPath = Path.Substring(1)
|
||||
ElseIf Path.StartsWith("\\windream") Then
|
||||
If Path.StartsWith("\\windream") Then
|
||||
oNormalizedPath = Path.Replace("\\windream\objects\", "")
|
||||
ElseIf Path.StartsWith("\") Then
|
||||
oNormalizedPath = Path.Substring(1)
|
||||
Else
|
||||
Return Path
|
||||
End If
|
||||
|
||||
@ -2119,6 +2119,7 @@ Public Class frmValidator
|
||||
End If
|
||||
|
||||
Case "System.Windows.Forms.CheckBox"
|
||||
If LogErrorsOnly = False Then ClassLogger.Add(" >> Loading checkbox.", False)
|
||||
oControlType = "CheckBox"
|
||||
If oWMIndexName = "" Then
|
||||
MsgBox("Achtung fehlerhafte Konfiguration:" & vbNewLine & "Für das Control " & oControl.Name & " wurde KEIN INDEX hinterlegt!" & vbNewLine & "Bitte prüfen Sie den Formulardesigner!", MsgBoxStyle.Critical)
|
||||
@ -2144,18 +2145,20 @@ Public Class frmValidator
|
||||
End If
|
||||
|
||||
|
||||
|
||||
If LogErrorsOnly = False Then ClassLogger.Add(" >> Loading Index value from Windream.", False)
|
||||
Dim wertWD
|
||||
If oWMIndexName.StartsWith("[%VKT") And PROFIL_VEKTORINDEX <> "" Then
|
||||
wertWD = ReturnVektor_IndexValue(oWMIndexName)
|
||||
Else
|
||||
wertWD = aktivesDokument.GetVariableValue(oWMIndexName)
|
||||
End If
|
||||
_CURRENT_INDEX_ARRAY(oCount, 1) = wertWD.ToString
|
||||
If LogErrorsOnly = False Then ClassLogger.Add(" >> Index value loaded: " & wertWD, False)
|
||||
|
||||
If wertWD Is Nothing Then
|
||||
ClassLogger.Add(">> Zurückgegebener Wert des Wertes für Checkbox mit Indexname '" & oIndexName & "' ist nothing. Check defaultvalue", False)
|
||||
chk.Checked = False
|
||||
Else
|
||||
_CURRENT_INDEX_ARRAY(oCount, 1) = wertWD.ToString
|
||||
If wertWD.ToString = "" Then
|
||||
ClassLogger.Add(">> Versuch, default Value zu laden", False)
|
||||
If oDefaultValue <> String.Empty Then
|
||||
@ -2293,6 +2296,7 @@ Public Class frmValidator
|
||||
ClassLogger.Add(">> Unvorhergesehener Fehler bei FillIndexValues: " & ex.Message, True)
|
||||
ClassLogger.Add(">> Controltype: " & oControlType, False)
|
||||
ClassLogger.Add(">> Indexname windream: " & oIndexName, False)
|
||||
ClassLogger.Add(">> Stacktrace: " & ex.StackTrace, False)
|
||||
|
||||
|
||||
End Try
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user