SET STRCONVERT

From Recital Documentation Wiki
Revision as of 09:17, 3 April 2012 by Yvonnemilne (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Purpose

Determines whether non-string expressions are automatically converted when added to strings


Syntax

SET STRCONVERT ON | OFF | (<expL>)


See Also

DTOC(), DTOS(), ECHO, ETOS(), LTOS(), STR()


Description

If SET STRCONVERT is ON, non-string expressions are automatically converted as they are added to a string. If SET STRCONVERT is OFF, expressions must be converted manually using the ETOS() or other data conversion functions.

By default, STRCONVERT is OFF.


Example

set strconvert on
echo "This string can add numerics and dates etc. " + 100.89 + " " + date()
 
set strconvert off
echo "This string can add numerics and dates etc. " + str(100.89,6,2) + " " + etos(date())


Products

Recital, Recital Server