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
Can be invoked implicitly, through the string_var= word_var expression (see example below). Compiler is smart enough to pre-calculate constant-only expressions involving implicit use of 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