Difference between revisions of "SET STRICT"
From Lianjapedia
Yvonne.milne (Talk | contribs) |
Yvonne.milne (Talk | contribs) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
==Purpose== | ==Purpose== | ||
− | Determines whether | + | Determines whether variables must be pre-declared |
==Syntax== | ==Syntax== | ||
Line 6: | Line 6: | ||
==See Also== | ==See Also== | ||
− | [[DTOC()]], [[DTOS()]], [[ECHO]], [[ETOS()]], [[LTOS()]], [[SET STRCONVERT]], [[STR()]] | + | [[DTOC()]], [[DTOS()]], [[ECHO]], [[ETOS()]], [[LTOS()]], [[SET LOCAL]], [[SET STRCONVERT]], [[STR()]] |
==Description== | ==Description== | ||
− | + | With SET STRICT ON, all variables must be pre-declared. By default, SET STRICT is OFF. | |
==Example== | ==Example== | ||
<code lang="recital"> | <code lang="recital"> | ||
set strict off | set strict off | ||
− | + | m_var = date() | |
− | + | ||
set strict on | set strict on | ||
− | + | private m_var | |
+ | m_var = date() | ||
</code> | </code> | ||
− | |||
− | |||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Commands]] | [[Category:Commands]] |
Latest revision as of 08:30, 4 December 2017
Contents
Purpose
Determines whether variables must be pre-declared
Syntax
SET STRICT ON | OFF | (<expL>)
See Also
DTOC(), DTOS(), ECHO, ETOS(), LTOS(), SET LOCAL, SET STRCONVERT, STR()
Description
With SET STRICT ON, all variables must be pre-declared. By default, SET STRICT is OFF.
Example
set strict off m_var = date() set strict on private m_var m_var = date()