Results 1 to 2 of 2

Thread: StrToFloat flexibel

  1. #1
    Reader
    Join Date
    May 2002
    Location
    Holland
    Posts
    3,382

    StrToFloat flexibel

    ik gebruik TryStrToFloat om een bestand in te lezen.
    Omdat dit uit een excel export komt wil ik floats flexibel inlezen. De decimalseparator moet wel een komma zijn.

    1023,89
    1.023,89

    Hoe kan ik deze laatste checken? Is er een TryXXX functie die dit doet?
    Of moet ik gewoon de punt eruit slopen?

    Groet!

  2. #2
    VZIW gebruikt StToXXX intern Val() en Val() werkt niet als er thousandseparators in zitten.
    Dus de meest eenvoudig optie lijkt om die eruit te slopen.

    Bart

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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