A
Armin Zingler
Robson said:Well the OP didn't say that![]()
Right, he didn't.
I assumed it because otherwise the was no reason thatthe "." is used (because his culture uses the ",").
Armin
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Robson said:Well the OP didn't say that![]()
I assumed it because otherwise the was no reason thatThe 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

Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.