Merge branch 'newMaster2024' of https://git.it.verag.ag/edv/SDL into newMaster2024
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user