str Function
Function: |
Converts unsigned 16-bit numeric value (word) into its decimal string representation. |
Syntax: |
str(num as word) as string |
See Also: |
Part |
Description |
num |
Value to be converted to string. |
Details
This function can be invoked implicitly through the string_var = word_var expression (see example below). The compiler is smart enough to pre-calculate constant-only expressions involving implicit use of the str function.
Examples
Tibbo BASIC
dim w as word
dim s as string
w=3400
s = str(w) 'explicit invocation.
s = w 'implicit invocation
s = 100 'will be calculated at compilation -- no actual str function invokation will be here