Hello renault,
the login in convert.vi is not effective for your needs. You should instead:
1) find what is the current decimal separator: this can be done like
suggested by GerdW, in any case you should format to a string a
constant value, not the values read from your file (I use normally 1.1 and then I pick up the middle character)
2) if the separator is a dot, you should search and replace ALL commas in the read text and change them to dots
if the separator is a comma, you should do the reverse
I hope that your original file is not comma separated, otherwise this method would not work.
In convert.vi, you are not comparing two characters, but two strings
that are unlikely to be the same; they are certainly different if there
is a fractional part and the separator in the file is different from
the Windows separator, because your first conversion string-to-number
fails in this case (the fractional part is lost).
Hoping it's useful for you
Paolo
Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021