Difference between revisions of "DEFAULT()"

From Lianjapedia
Jump to: navigation, search
 
(3 intermediate revisions by the same user not shown)
Line 6: Line 6:
  
 
==See Also==
 
==See Also==
[[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 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()
 +
/home/user1
 +
// In Lianja/VFP Command Window
 +
pwd
 
/home/user1
 
/home/user1
 
</code>
 
</code>

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