Article View: borland.public.cppbuilder.nativeapi
Article #11422Re: ThousandSeparator
From: Remy Lebeau (TeamB)
Date: Mon, 09 Feb 2004 18:41
Date: Mon, 09 Feb 2004 18:41
17 lines
1398 bytes
1398 bytes
"Guba" <admin@coka.co.yu> wrote in message
news:4027668a@newsgroups.borland.com...
> How can I convert AnsiString with ThousandSeparator to Float
> for example (AnsiString 100.000,00 ->Float 100.000,00)
You can strip off the separators from the string and then call StrToFloat().
For example:
AnsiString s = "100.000,00";
s = StringReplace(s, ThousandsSeparator, "", TReplaceFlags() <<
rfReplaceAll);
Extended e = StrToFloat(s);
Gambit
Technical Details
Message-ID:
<4027d29a$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<4027668a@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,212b59f034328c33 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-02-09 10:34:59 PST From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <4027668a@newsgroups.borland.com> Subject: Re: ThousandSeparator Date: Mon, 9 Feb 2004 10:41:28 -0800 Lines: 19 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 67.22.138.253 Message-ID: <4027d29a$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1076351642 67.22.138.253 (9 Feb 2004 10:34:02 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail