Lstri Function

Top  Previous  Next

 

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

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

Examples

 

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