Results 1 to 2 of 2

Thread: Problems with decimal numbers in VB - URGENT

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 2000
    Location
    Slovenia
    Posts
    40

    Post

    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?

  2. #2
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845

    Post

    Use val() instead



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

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width