Get the used character like decimal separator in the system  

Send By: Q3 Team
Web : http://www.q3.nu
Email: dlib@q3.nu
Date: 21/09/99

Tip accessed 449 times

 


We can get complicated the life with the function of the API GetNumberFormat to obtain it, but here we have a much simpler method:


 var
   SeparadorDecimal:string;
 begin
   SeparadorDecimal:=Copy( FloatToStr(1.1) ,2,1 );
 end;




And without a doubt, much easier it is to use the variable of Delphi 'DecimalSeparator' O:)


   Label1.Caption:=DecimalSeparator;




Updated at 21/09/99
Add the second method (all days we learn something...) O:)