PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
fParentDir (Function)
In french: fRepParent
Returns the path of the parent directory for the specified directory.
Versions 15 and later
PHP This function is now available for PHP sites.
New in version 15
PHP This function is now available for PHP sites.
PHP This function is now available for PHP sites.
Example
// Displays the parent directory of the current directory
Trace(fParentDir(fCurrentDir()))
Syntax
<Result> = fParentDir(<Home directory> [, <Options>])
<Result>: Character string in ANSI or UNICODE format
Can correspond to:
  • Path of the parent directory of <Home directory>.
  • Empty string ("") if the <Home directory> has no parent.
  • ".." if the <Home directory> is set to ".".
  • "..\.." if the <Home directory> is set to "..".
Remark: <Result> and <Home directory> have the same type. For example, if <Home directory> is an ANSI character string, <Result> will be an ANSI character string.
<Home directory>: Character string in ANSI or UNICODE format
Path of the home directory for which the parent directory is sought. This path can be an absolute or relative path, a local or UNC path.
<Options>: Optional Integer constant
Options taken into account:
fRelativePathThe returned path will always be a relative path (even if <Base directory> corresponds to an absolute path)

Component: wd260std.dll
Minimum version required
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment