Previous Topic: Right - Return a Substring with Rightmost n CharactersNext Topic: Trim - Remove Leading and Trailing Spaces from a String


Str - Convert Numeric Expression to String

Valid on NetWare, Symbian OS, UNIX, Windows and Windows CE

The Str function converts the value of a numeric expression to a string.

Function format:

Str(n as Integer) as String
n

Identifies the integer that is to be converted.

The function returns the string representing the value specified by the parameter n.

Example:

This example prints the ASCII values of the letters "ABC" on the screen.

Dim OutStr as string

OutStr = Str(Asc("A"))+" "+Str(Asc("B"))+" "+Str(Asc("C"))

Print "AscII Values of the letters in ""ABC"" is: " + OutStr