Avatar of Paer Toernell
Paer ToernellFlag for Thailand asked on

Convert integer to string in delphi 2007

I need to convert an integer to a string. Cant find it in the new helpsystem, im drowning in irrelavant information there. If u can help me out and also show me where in the new help system i can find the information pls.
Delphi

Avatar of undefined
Last Comment
Johnjces

8/22/2022 - Mon
rfwoolf

inttostr(your integer goes here);

example:
showmessage(inttostr(99)); //output is '9';
ASKER CERTIFIED SOLUTION
rfwoolf

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
MerijnB

> showmessage(inttostr(99)); //output is '9';

I really hope output is '99' in this case :p
Johnjces

If the possibility exists that you want to tune the integer 9 into "nine" or the integer 25 into "twenty five" then download this code from delphi.about.com:

http://clk.about.com/?zi=18/1Pp&sdn=delphi&cdn=compute&tm=10&f=22&su=p284.8.150.ip_&tt=2&bt=0&bts=0&zu=http%3A//delphi.about.com/library/weekly/code/numberstowords.zip

tinyurl:  http://tinyurl.com/4levhy

John
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23