Merge branch 'newMaster2024' of https://git.it.verag.ag/edv/SDL into newMaster2024

This commit is contained in:
2026-05-27 18:09:45 +02:00
2 changed files with 11 additions and 2 deletions

View File

@@ -475,12 +475,22 @@ Public Class cTelotecAPI
End Function
Function SafeParseDecimal(value As String) As Decimal
If String.IsNullOrWhiteSpace(value) Then
Return 0D
End If
Dim result As Decimal
If Decimal.TryParse(value, result) Then
If Decimal.TryParse(value,
NumberStyles.Any,
CultureInfo.InvariantCulture,
result) Then
Return result
Else
Return 0D
End If
End Function
Function SafeParseInt(value As String) As Integer