Get the used character like thousand separator in the system  

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

Tip accessed 480 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
   SeparadorMiles:string;
 begin
   SeparadorMiles:=Copy(FormatFloat('#,',1234),2,1);
 end;




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


   Label1.Caption:=ThousandSeparator;




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