S
Sick
My application populates a ListBox from a .TXT file. In the textfile there
are prices with both dots as well as comma's for decimal indication.
Example:
1234990; xg-tr-45; 1700,50; 0
2662666; hj-54-56; 1565.00; 0
8228880; 30-56-tw; 3295.50; 0
0022339; hs-sa-73; 2975,75; 0
.... etc
The amounts (third column) are used to calculate a total. However, since I
have Dutch regional settings only the comma-seperations can be used for
calculating a correct sum. My system ignores the prices with the decimal
seperated by a dot (.) It is no option to alter the .TXT file.
I tried various options, such as formatting the entries with practically all
the options I could find. One example:
ItemAmount = Format(CSng(ItemAmount), "Currency")
Is there a simple solution for this, besides converting the prices? If
anyone could help, I would gratefully appreciate it.
are prices with both dots as well as comma's for decimal indication.
Example:
1234990; xg-tr-45; 1700,50; 0
2662666; hj-54-56; 1565.00; 0
8228880; 30-56-tw; 3295.50; 0
0022339; hs-sa-73; 2975,75; 0
.... etc
The amounts (third column) are used to calculate a total. However, since I
have Dutch regional settings only the comma-seperations can be used for
calculating a correct sum. My system ignores the prices with the decimal
seperated by a dot (.) It is no option to alter the .TXT file.
I tried various options, such as formatting the entries with practically all
the options I could find. One example:
ItemAmount = Format(CSng(ItemAmount), "Currency")
Is there a simple solution for this, besides converting the prices? If
anyone could help, I would gratefully appreciate it.