performance fixes for drawing group header, log (to database on) unhandled exceptions

This commit is contained in:
Jonathan Jenne
2020-10-21 12:21:51 +02:00
parent 856aa7c298
commit b0b144098b
3 changed files with 110 additions and 93 deletions

View File

@@ -44,6 +44,22 @@
Public Function IntToColor(int As Integer) As Color
Return ColorTranslator.FromWin32(int)
End Function
Public Function PrepareLogMessage(LogMessage As String) As String
Dim oLogSplit As String()
oLogSplit = LogMessage.Split("|")
If oLogSplit.Count < 3 Then
Return LogMessage
Else
Dim omsg = oLogSplit(2).
Replace("'", "''").
Replace("\\n", "").
Replace(Chr(13), "").
Replace(Chr(10), "")
Return omsg
End If
End Function
End Module