lstri Function

Function:

Converts signed 32-bit numeric value (long) into its decimal string representation.

Syntax:

lstri(byref num as long) as string

See Also:

str, lstr, stri, bin, lbin, hex, lhex, val, lval


Part

Description

num

Value to be converted to string.


Details

This function can be invoked implicitly through the string_var = long_var expression (see example below). The compiler is smart enough to pre-calculate constant-only expressions involving implicit use of the lstri function.


Examples

Tibbo BASIC
dim l as long
dim s as string
 
l= -5123
s = lstri(l) 'explicit invocation.
s = l 'implicit invocation
s = lstri(-20) 'will be calculated at compilation -- no actual lstri function invokation will be here

lstri Function

Details

Examples