Difference between revisions of "SET STRICT"
From Lianjapedia
Helen.george (Talk | contribs) |
|||
Line 1: | Line 1: | ||
==Purpose== | ==Purpose== | ||
Determines whether non-string expressions are automatically converted when added to strings | Determines whether non-string expressions are automatically converted when added to strings | ||
− | |||
==Syntax== | ==Syntax== | ||
SET STRICT ON | OFF | (<expL>) | SET STRICT ON | OFF | (<expL>) | ||
− | |||
==See Also== | ==See Also== | ||
[[DTOC()]], [[DTOS()]], [[ECHO]], [[ETOS()]], [[LTOS()]], [[STR()]] | [[DTOC()]], [[DTOS()]], [[ECHO]], [[ETOS()]], [[LTOS()]], [[STR()]] | ||
− | |||
==Description== | ==Description== | ||
If SET STRICT is OFF, non-string expressions are automatically converted as they are added to a string. If SET STRICT is ON, expressions must be converted manually using the ETOS() or other data conversion functions. By default, STRICT is ON. | If SET STRICT is OFF, non-string expressions are automatically converted as they are added to a string. If SET STRICT is ON, expressions must be converted manually using the ETOS() or other data conversion functions. By default, STRICT is ON. | ||
− | |||
==Example== | ==Example== | ||
Line 23: | Line 19: | ||
echo "This string can add numerics and dates etc. " + str(100.89,6,2) + " " + etos(date()) | echo "This string can add numerics and dates etc. " + str(100.89,6,2) + " " + etos(date()) | ||
</code> | </code> | ||
− | |||
==Products== | ==Products== |
Revision as of 12:30, 12 December 2012
Purpose
Determines whether non-string expressions are automatically converted when added to strings
Syntax
SET STRICT ON | OFF | (<expL>)
See Also
DTOC(), DTOS(), ECHO, ETOS(), LTOS(), STR()
Description
If SET STRICT is OFF, non-string expressions are automatically converted as they are added to a string. If SET STRICT is ON, expressions must be converted manually using the ETOS() or other data conversion functions. By default, STRICT is ON.
Example
set strict off echo "This string can add numerics and dates etc. " + 100.89 + " " + date() set strict on echo "This string can add numerics and dates etc. " + str(100.89,6,2) + " " + etos(date())
Products
Lianja, Lianja Server