stri Function

Function:

Converts signed 16-bit numeric value (short) into its decimal string representation.

Syntax:

stri(num as integer) as string

See Also:

str, lstr, lstri, 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 = short_var expression (see example below). The compiler is smart enough to pre-calculate constant-only expressions involving implicit use of the stri function.


Examples

Tibbo BASIC
dim sh as short
dim s as string
 
sh= -3400
s = stri(sh) 'explicit invocation.
s = sh 'implicit invocation
s = stri(-100) 'will be calculated at compilation -- no actual stri function invokation will be here

stri Function

Details

Examples