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