Link to home
Start Free TrialLog in
Avatar of mdlittle
mdlittle

asked on

Formatting Strings

How do you use the format, Strfmt and Fmtstr functions. I am trying to take a string like this '26000' and convert it to 26,000.
ASKER CERTIFIED SOLUTION
Avatar of d4jaj1
d4jaj1

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mdlittle
mdlittle

ASKER

This is a sample of how I actually got it to work. Thanks for your help.

var
   sSomeString: String;
   TheNumber: Double;
begin

   TheNumber := StrtoFloat('128577');
   SomeString := FormatFloat('#,##0', TheNumber);
end;