|
Stri Function |
Top Previous Next |
Function: |
Converts signed 16-bit numeric value (short) into its decimal string representation. |
Syntax: |
stri(num as integer) as string |
See Also: |
Part |
Description |
num |
Value to be converted to string. |
Details
Can be invoked implicitly, through the string_var= short_var expression (see example below). Compiler is smart enough to pre-calculate constant-only expressions involving implicit use of stri function.
Examples
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 |