PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
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
Returns the full long path of a file or directory.
// Retrieve the long path of a file
ResLongPath = fLongPath("C:\MyDir~1\Account~1.doc")
// fLongPath returns "C:\MyDirectories\Report March 2000.doc"
Syntax
<Result> = fLongPath(<File Path> [, <Option>])
<Result>: Character string
  • Long name corresponding to the full path of the file or directory. If <File Path> ends with the "\" character, this character is kept.
  • Empty string ("") if an error occurred (for instance, if the specified file or directory does not exist). To find out the error details, use ErrorInfo associated with the errMessage constant.
<File Path>: Character string (with quotes)
Name and full (or relative) path of the file or directory (up to 260 characters). A UNC path can be used.
Versions 15 and later
This parameter can be in Ansi or Unicode format.
New in version 15
This parameter can be in Ansi or Unicode format.
This parameter can be in Ansi or Unicode format.
<Option>: Integer constant
Versions 15 and later
Used to specify the format of function result.
fPathUNICODE<Result> will be a character string in Unicode format.

Note: If the fPathUNICODE constant is not specified and if the function must return a Unicode string, <Result> will correspond to the short path of the file.
New in version 15
Used to specify the format of function result.
fPathUNICODE<Result> will be a character string in Unicode format.

Note: If the fPathUNICODE constant is not specified and if the function must return a Unicode string, <Result> will correspond to the short path of the file.
Used to specify the format of function result.
fPathUNICODE<Result> will be a character string in Unicode format.

Note: If the fPathUNICODE constant is not specified and if the function must return a Unicode string, <Result> will correspond to the short path of the file.
Remarks
Some operating systems (Windows 3.1 and earlier) do not support the long names. To find out whether a drive supports the long names, use fDriveInfo associated with the fdFileNameSize constant.
Components
WINDEVReports and Queries wd230std.dll
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment