Difference between revisions of "DB IMGDIR"

From Recital Documentation Wiki
Jump to: navigation, search
 
 
Line 1: Line 1:
 
==Purpose==
 
==Purpose==
Used to specify the full path name of a directory to be used by the SYS(3) function to save screen files
+
Used to specify the full path name of a directory to be used by the SAVE command to save screen memory variables to persistent screen files
  
  
 
==See Also==
 
==See Also==
[[SET TMPDIR]], [[SYS()]]
+
[[GETENV()]], [[RESTORE]], [[RESTORE SCREEN]], [[SAVE]], [[SAVE SCREEN]]
  
  
 
==Description==
 
==Description==
The DB_IMGDIR environment variable is used to define a directory that will be used by the SYS(3) function for temporary file creation.  If DB_TMPDIR is not defined, SYS(3) returns a unique file name without path information.  Defining DB_TMPDIR causes this directory to be included in the return value from SYS(3).  Please note that the DB_TMPDIR should include a trailing directory separator.
+
The DB_IMGDIR environment variable is used to define a directory that will be used by the SAVE command to save screen memory variables to persistent screen files.  Please note that the DB_TMPDIR should include a trailing directory separator.
  
  
 
==Example==
 
==Example==
 
<code lang="recital">
 
<code lang="recital">
 +
// Save screen to a memory variable
 +
save screen to m_screen
 +
// Save memory variables to a '.mem' file
 +
save to memvars
 +
// The contents of m_screen will be save to
 +
// a '.img' file in the DB_IMGDIR directory
 
</code>
 
</code>
  

Latest revision as of 12:56, 5 March 2010

Purpose

Used to specify the full path name of a directory to be used by the SAVE command to save screen memory variables to persistent screen files


See Also

GETENV(), RESTORE, RESTORE SCREEN, SAVE, SAVE SCREEN


Description

The DB_IMGDIR environment variable is used to define a directory that will be used by the SAVE command to save screen memory variables to persistent screen files. Please note that the DB_TMPDIR should include a trailing directory separator.


Example

// Save screen to a memory variable
save screen to m_screen
// Save memory variables to a '.mem' file
save to memvars
// The contents of m_screen will be save to 
// a '.img' file in the DB_IMGDIR directory


Products

Recital, Recital Server