Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Convert Integer Into String

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?

like image 636
Nathan Campos Avatar asked Dec 31 '09 18:12

Nathan Campos


People also ask

Can we convert integer to string in java?

Integer to String conversion in Java: using Integer. toString(int) The Integer class has a static method that returns a String object representing the int parameter specified in the Integer. toString(int) function.

Can we convert int to string in C?

Method 1 – Convert Int to String Using the Sprintf Function The Sprintf function is one of the functions you can use to convert an integer value into a string. As the name suggests, the function will take any value and print it into a string. It is very similar to the printf function.

Can we convert int to string in Python?

In Python an integer can be converted into a string using the built-in str() function. The str() function takes in any python data type and converts it into a string.

How do I convert an int to a string in C#?

To convert an integer to string in C#, use the ToString() method.


1 Answers

You can use IntToStr:

A:=IntToStr(123) 
like image 50
notnoop Avatar answered Sep 28 '22 08:09

notnoop