Board index » cppbuilder » Re: ThousandSeparator
Dwayne
![]() CBuilder Developer |
Re: ThousandSeparator2004-02-09 12:55:13 AM cppbuilder41 Hello Guba, How can I convert AnsiString with ThousandSeparator to Float for example (AnsiString 100.000,00 ->Float 100.000,00) Here is a short example of removing your comma and converting. If you want, you can use the same example and change the period to a command and comma to a period. int a; AnsiString Buf1; Buf1=Form1->Edit1->Text; while(a=Buf1.Pos(','))Buf1=Buf1.SubString(1,a-1)+Buf1.SubString(a+1,Buf1.Len gth()-a); Form1->Edit2->Text=Buf1; Dwayne |