Difference between revisions of "TMPDIR()"

From Lianjapedia
Jump to: navigation, search
 
(2 intermediate revisions by 2 users not shown)
Line 6: Line 6:
  
 
==See Also==
 
==See Also==
[[DB_TMPDIR]], [[SET TMPDIR]], [[SYS()]]
+
[[SET TMPDIR]], [[SYS()]]
  
 
==Description==
 
==Description==
The TMPDIR() function is used to return the current temporary file directory location.  The DB_TMPDIR environment variable sets the location.  It can be overriden using the SET TMPDIR command.
+
The TMPDIR() function is used to return the current temporary file directory location.
  
 
==Example==
 
==Example==
 
<code lang="recital">
 
<code lang="recital">
 +
// envar Lianja Server only
 
? getenv([DB_TMPDIR])
 
? getenv([DB_TMPDIR])
 
? tmpdir()
 
? tmpdir()
set tmpdir to "/usr/tmp/"
+
set tmpdir to "C:\tmp\"
 
? tmpdir()
 
? tmpdir()
 
</code>
 
</code>
Line 22: Line 23:
 
[[Category:Functions]]
 
[[Category:Functions]]
 
[[Category:Environment Functions]]
 
[[Category:Environment Functions]]
 +
[[Category:Lianja VFP Extensions]]
 +
[[Category:VFP Function Extensions]]

Latest revision as of 13:33, 19 May 2014

Purpose

Function to return the current temporary file directory location

Syntax

TMPDIR()

See Also

SET TMPDIR, SYS()

Description

The TMPDIR() function is used to return the current temporary file directory location.

Example

// envar Lianja Server only
? getenv([DB_TMPDIR])
? tmpdir()
set tmpdir to "C:\tmp\"
? tmpdir()