IntToStr
Converts an integer to its character string representation.
Syntax
IntToStr(number[, precision])
number = integer whose character string representation you want to retrieve
precision = optional precision (minimum number of digits)
Remarks
If number contains a fractional part, it will first be rounded to the nearest integer. To convert a floating-point value, see FloatToStr.
If number is not a number, the function will return #VAL!.
The precision parameter indicates the minimum number of digits to display, with zeros being used as a prefix, when necessary.
To convert to base-16, see IntToHex.
Example
IntToStr(31) = "31" (a string of the character "3" and then the character "1")IntToStr(31, 4) = "0031"