PDA

Click to See Complete Forum and Search --> : Problems with decimal numbers in VB - URGENT


tompod
Jan 20th, 2000, 04:49 PM
Hi
My VB program is reading data from ASCII file. Decimal numbers are converted form string to decimal by CDbl() fumction, which depends of regional setings on WINNT sistem.
For example:
regional setings set to Slovenian:
CDbl("100.05") = 10005
regional setings set to English:
CDbl("100.05") = 100.05
How can I solve this problem?
How can I read value of regional setings from Registry?

Mark Sreeves
Jan 20th, 2000, 05:56 PM
Use val() instead



------------------
Mark Sreeves
Analyst Programmer

Mark.Sreeves@Softlab.co.uk
A BMW Group Company