Difference between revisions of "SET FULLPATH"

From Lianjapedia
Jump to: navigation, search
 
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
==Purpose==
 
==Purpose==
 
Controls file specification display
 
Controls file specification display
 
  
 
==Syntax==
 
==Syntax==
 
SET FULLPATH ON | OFF | (<expL>)
 
SET FULLPATH ON | OFF | (<expL>)
 
  
 
==See Also==
 
==See Also==
[[BASENAME()]], [[DBF()]], [[FMT()]], [[LIST STATUS]], [[NDX()]], [[SET PATH]]
+
[[BASENAME()]], [[DBF()]], [[LIST STATUS]], [[NDX()]], [[SET PATH]]
 
+
  
 
==Description==
 
==Description==
 
If FULLPATH is set ON, then the full file specification, including disk and directory, is displayed by commands and functions that display or return filenames.  When FULLPATH is set OFF only the filename is displayed or returned.  The SET FULLPATH OFF command can be used when programs whose functions return full file and path names are incompatible with programs whose functions only return the drive and the filename.  The default for SET FULLPATH is OFF.  The function BASENAME() can be used with FULLPATH to return only the filename when SET FULLPATH is ON.
 
If FULLPATH is set ON, then the full file specification, including disk and directory, is displayed by commands and functions that display or return filenames.  When FULLPATH is set OFF only the filename is displayed or returned.  The SET FULLPATH OFF command can be used when programs whose functions return full file and path names are incompatible with programs whose functions only return the drive and the filename.  The default for SET FULLPATH is OFF.  The function BASENAME() can be used with FULLPATH to return only the filename when SET FULLPATH is ON.
 
  
 
==Example==
 
==Example==
 
<code lang="recital">
 
<code lang="recital">
use state.rdb
+
use customers
 
? dbf()
 
? dbf()
state.rdb
+
CUSTOMERS.DBF
 
set fullpath on
 
set fullpath on
 
? dbf()
 
? dbf()
/usr/recital/UD/demo/state.rdb</code>
+
C:\LIANJA\DATA\SOUTHWIND\CUSTOMERS.DBF</code>
  
==Products==
 
Recital Server, Recital
 
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Commands]]
 
[[Category:Commands]]
 
[[Category:Set_Commands|FULLPATH]]
 
[[Category:Set_Commands|FULLPATH]]
[[Category:Environment]]
 
[[Category:Environment Set Commands]]
 

Latest revision as of 13:47, 19 May 2014

Purpose

Controls file specification display

Syntax

SET FULLPATH ON | OFF | (<expL>)

See Also

BASENAME(), DBF(), LIST STATUS, NDX(), SET PATH

Description

If FULLPATH is set ON, then the full file specification, including disk and directory, is displayed by commands and functions that display or return filenames. When FULLPATH is set OFF only the filename is displayed or returned. The SET FULLPATH OFF command can be used when programs whose functions return full file and path names are incompatible with programs whose functions only return the drive and the filename. The default for SET FULLPATH is OFF. The function BASENAME() can be used with FULLPATH to return only the filename when SET FULLPATH is ON.

Example

use customers
? dbf()
CUSTOMERS.DBF
set fullpath on
? dbf()
C:\LIANJA\DATA\SOUTHWIND\CUSTOMERS.DBF