Convert Integer Into String

Nathan Campos picture Nathan Campos · Dec 31, 2009 · Viewed 55.2k times · Source

I have a some numbers stored in a Integer called mode, but I need to use they in a TProcess. For this I need to convert the Integer into a String, because if I don't do this, I got the error:

Incompatible types: got "LongInt" expected "AnsiString"

Then I want to know how I can convert a Integer into a String?

Answer

notnoop picture notnoop · Dec 31, 2009

You can use IntToStr:

A:=IntToStr(123)