Difference between revisions of "SET STRICT"
From Recital Documentation Wiki
Yvonnemilne (Talk | contribs) |
Yvonnemilne (Talk | contribs) |
||
Line 1: | Line 1: | ||
==Purpose== | ==Purpose== | ||
− | Determines whether | + | Determines whether variables must be pre-declared |
Line 8: | Line 8: | ||
==See Also== | ==See Also== | ||
− | [[ | + | [[DECLARE]], [[DIMENSION]], [[DO]], [[DISPLAY MEMORY]], [[LOCAL]], [[NAMESPACE]], [[NAMESPACE()]], [[PARAMETERS]], [[PRIVATE]], [[PUBLIC]], [[SET CLIPPER]], [[SET STRCONVERT]], [[STORE]], [[STR()]], [[VARINFO()]] |
==Description== | ==Description== | ||
− | + | With SET STRICT ON, all variables must be pre-declared. | |
By default, STRICT is OFF. | By default, STRICT is OFF. | ||
Line 20: | Line 20: | ||
<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> | ||
Latest revision as of 09:22, 3 April 2012
Purpose
Determines whether variables must be pre-declared
Syntax
SET STRICT ON | OFF | (<expL>)
See Also
DECLARE, DIMENSION, DO, DISPLAY MEMORY, LOCAL, NAMESPACE, NAMESPACE(), PARAMETERS, PRIVATE, PUBLIC, SET CLIPPER, SET STRCONVERT, STORE, STR(), VARINFO()
Description
With SET STRICT ON, all variables must be pre-declared.
By default, STRICT is OFF.
Example
set strict off m_var = date() set strict on private m_var m_var = date()
Products
Recital, Recital Server