Difference between revisions of "DEFAULT()"

From Lianjapedia
Jump to: navigation, search
 
Line 11: Line 11:
 
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.
+
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==

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