A
Armin Zingler
Robson said:Well the OP didn't say that![]()
Right, he didn't.

the "." is used (because his culture uses the ",").
Armin
Robson said:Well the OP didn't say that![]()
The point I was making was that if you are attempting to read, say, a text
file generated using Norwegian culture, with the invariant culture
(English) on a Spanish PC, you can expect problems. You cannot be truely
culturally independant unless the data in this instance contains culture
information with it. Otherwise, you are restricted to only ever
reading/writing either with the invariant culture (ie. you the programmer
choose one and stick with it whereever you are in the world) or only ever
being able to read data from the same culture with which it was written,
which is also somewhat restrictive.
Armin Zingler said:I think it is culture dependent.
Try this instead:
dim s as string
s = line.Substring(7, 8).Trim
currentImportDetail.Result = double.parse( _
s, System.Globalization.CultureInfo.InvariantCulture.NumberFormat) _
)
Armin