Difference between revisions of "SET DEVELOPMENT"
Yvonnemilne (Talk | contribs) |
Yvonnemilne (Talk | contribs) |
||
Line 1: | Line 1: | ||
− | |||
− | |||
− | |||
==Class== | ==Class== | ||
Environment | Environment | ||
Line 19: | Line 16: | ||
==Description== | ==Description== | ||
− | When DEVELOPMENT is set ON, the modification date and time of the program source file is compared with the modification and time of the compiled object file (.dbo) when a program is executed. This prevents an outdated object file from executing. If the .dbo file is older than its source program file, the source file is automatically recompiled. | + | When DEVELOPMENT is set ON, the modification date and time of the program source file is compared with the modification and time of the compiled object file (.dbo) when a program is executed. This prevents an outdated object file from executing. If the .dbo file is older than its source program file, the source file is automatically recompiled. |
+ | |||
+ | If SET DEVELOPMENT is OFF then existing ’.dbo’ files will be executed even if there is a corresponding source file that is newer. For source files that have no corresponding ’.dbo’ file, one will be created. By default, DEVELOPMENT is ON. | ||
==Example== | ==Example== | ||
− | < | + | <code lang="recital"> |
set compile on | set compile on | ||
set development on | set development on | ||
− | do prototype</ | + | do prototype</code> |
Revision as of 14:35, 15 April 2009
Class
Environment
Purpose
Determine which files need to be compiled
Syntax
SET DEVELOPMENT ON | OFF | (<expL>)
See Also
COMPILE, DO, SET COMPILE, SET PSHARE
Description
When DEVELOPMENT is set ON, the modification date and time of the program source file is compared with the modification and time of the compiled object file (.dbo) when a program is executed. This prevents an outdated object file from executing. If the .dbo file is older than its source program file, the source file is automatically recompiled.
If SET DEVELOPMENT is OFF then existing ’.dbo’ files will be executed even if there is a corresponding source file that is newer. For source files that have no corresponding ’.dbo’ file, one will be created. By default, DEVELOPMENT is ON.
Example
set compile on set development on do prototype
Products
Recital Database Server, Recital Mirage Server, Recital Terminal Developer