Difference between revisions of "DEFAULT()"

From Lianjapedia
Jump to: navigation, search
 
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
==Purpose==
 
==Purpose==
Function to return current device and directory
+
Function to return current directory
 
+
  
 
==Syntax==
 
==Syntax==
DEFAULT([<expN>])
+
DEFAULT()
 
+
  
 
==See Also==
 
==See Also==
[[DIR()]], [[PATH()]], [[SET DEFAULT]], [[SET PATH]], [[SYS()]]
+
[[APPDIR()]], [[DATADIR()]], [[Lianja|Lianja System Object]], [[LIBDIR()]], [[PATH()]], [[SET DEFAULT]], [[SET PATH]], [[SYS()]]
 
+
  
 
==Description==
 
==Description==
The DEFAULT() function returns the name of the current directory.  The optional <expN> is used to the return the current device specification as well as the directory on OpenVMS.  The <expN> must return a 1.  The DEFAULT() function always returns a character string without changing the case.
+
The DEFAULT() function returns the name of the current directory.  The DEFAULT() function always returns a character string without changing the case.
  
 +
In the Lianja/VFP Command Window in the Console Workspace and App Inspector, the command PWD can also be used to return the name of the current directory.
  
 
==Example==
 
==Example==
 
<code lang="recital">
 
<code lang="recital">
 
? default()
 
? default()
[USERS.RECITAL]
+
/home/user1
? default(1)
+
// In Lianja/VFP Command Window
DIA1:[USERS.RECITAL]
+
pwd
 +
/home/user1
 
</code>
 
</code>
 
+
 
+
==Products==
+
Recital Server, Recital
+
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Functions]]
 
[[Category:Functions]]

Latest revision as of 11:29, 8 December 2014

Purpose

Function to return current directory

Syntax

DEFAULT()

See Also

APPDIR(), DATADIR(), Lianja System Object, LIBDIR(), PATH(), SET DEFAULT, SET PATH, SYS()

Description

The DEFAULT() function returns the name of the current directory. The DEFAULT() function always returns a character string without changing the case.

In the Lianja/VFP Command Window in the Console Workspace and App Inspector, the command PWD can also be used to return the name of the current directory.

Example

? default()
/home/user1
// In Lianja/VFP Command Window
pwd
/home/user1