FormatString Currency
This commit is contained in:
@@ -187,7 +187,8 @@ Public Class ClassPMWindream
|
||||
Case WMObjectVariableValueTypeFloat
|
||||
LOGGER.Debug("Typ des windream-Indexes: WMObjectVariableValueTypeFloat")
|
||||
Try
|
||||
convertValue = CDbl(value)
|
||||
value = Replace(value, ".", ",")
|
||||
convertValue = Convert.ToDouble(value)
|
||||
Catch ex As Exception
|
||||
LOGGER.Error(ex)
|
||||
frmValidator.idxerr_message = "Could't convert value '" & value & "' to double!"
|
||||
@@ -295,10 +296,11 @@ Public Class ClassPMWindream
|
||||
'ReDim ArrName(0)
|
||||
'ArrName(0) = "Tournr"
|
||||
'oDocument.SetValues(ArrName, ArrValues)
|
||||
If convertValue = "String.Empty" Or convertValue = vbEmpty Then
|
||||
LOGGER.Debug("Now Indexing simpleAttribute with vbEmpty ...")
|
||||
oDocument.SetVariableValue(aName, String.Empty)
|
||||
ElseIf _int = True Then
|
||||
'If convertValue = String.Empty Or convertValue = vbEmpty Then
|
||||
' LOGGER.Debug("Now Indexing simpleAttribute with vbEmpty ...")
|
||||
' oDocument.SetVariableValue(aName, String.Empty)
|
||||
'Else
|
||||
If _int = True Then
|
||||
oDocument.SetVariableValue(aName, CInt(convertValue))
|
||||
ElseIf _date = True Then
|
||||
oDocument.SetVariableValue(aName, CDate(convertValue))
|
||||
|
||||
Reference in New Issue
Block a user