HI all,
How can i replace "." to "," ?????
Problem:
input of 10.0000 gives in the formula below 100000 as result. but this should be 10.
I replaced the "." into "," in the orginal file and that gave the desired answer of 10.
10,0000 should be 100000.
We don't want to replace the orginal files. what can i do?
FYI: I'm using crystal report just for 2 days.
NumberVar nLen;
StringVar sNum;
sNum := ToText({INVITEM_CSV.QUANTITY},4,",","."
nLen := Length(sNum);
If Right( sNum, 1) = "0" Then
nLen := nLen -1;
If Right( sNum, 2) = "00" Then
nLen := nLen -1;
If Right( sNum, 3) = "000" Then
nLen := nLen -1;
If Right( sNum, 4) = "0000" Then
nLen := nLen -2;
Left(sNum,nLen);
We use a csv-file as input.
Thnx in advance.
Phyl1
How can i replace "." to "," ?????
Problem:
input of 10.0000 gives in the formula below 100000 as result. but this should be 10.
I replaced the "." into "," in the orginal file and that gave the desired answer of 10.
10,0000 should be 100000.
We don't want to replace the orginal files. what can i do?
FYI: I'm using crystal report just for 2 days.
NumberVar nLen;
StringVar sNum;
sNum := ToText({INVITEM_CSV.QUANTITY},4,",","."
nLen := Length(sNum);
If Right( sNum, 1) = "0" Then
nLen := nLen -1;
If Right( sNum, 2) = "00" Then
nLen := nLen -1;
If Right( sNum, 3) = "000" Then
nLen := nLen -1;
If Right( sNum, 4) = "0000" Then
nLen := nLen -2;
Left(sNum,nLen);
We use a csv-file as input.
Thnx in advance.
Phyl1