|
Lstr Function |
Top Previous Next |
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
Can be invoked implicitly, through the string_var= dword_var expression (see example below). Compiler is smart enough to pre-calculate constant-only expressions involving implicit use of lstr function.
Examples
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
|