Function ToString

ToString(value)
The function converts any kind of value to string value. Usually conversion is performed on the fly, and you rarely need to use this function. In the example below we convert numeric value to string and checking if it is a string:
num = 10.5
str = ToString(num)

if IsString(num)
	DrawText(10, 10, "num is a string") ' will not be executed
else
	DrawText(10, 10, "num is NOT a string") ' will be executed
end if

if IsString(str)
	DrawText(10, 30, "str is a string") ' will be executed
else
	DrawText(10, 30, "str is NOT a string") ' will not be executed
end if

See also: