Action
Returns a string representation of a number.
Syntax
var = STR( x )
Remarks
Var |
A string variable. |
X |
A numeric variable. |
The string must be big enough to store the string.
See also
Difference with QB
In QB STR() returns a string with a leading space. This behaviour is not in BASCOM.
Example
Dim a as Byte, S as XRAM String * 10
a = 123
s = Str(a)
Print s
End