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/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
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 get more details on the error, use ErrorInfo with the errMessage constant.
<File path>: Character string
Name and full (or relative) path of the file or directory (up to 260 characters). A UNC path can be used.
This parameter can be in Ansi or Unicode format.
<Option>: Integer constant
Used to specify the format of function result.
fPathUNICODE<Result> will be a Unicode string.

Remark: 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.
Component: wd280std.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment