PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Long names
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 long name of a file or directory.
Versions 24 and later
Windows This function is now available for the WEBDEV sites in Windows.
New in version 24
Windows This function is now available for the WEBDEV sites in Windows.
Windows This function is now available for the WEBDEV sites in Windows.
// Retrieve the long name of a file
ResLongName = fLongName("C:\MyDir~1\Account~1.doc")
// fLongName returns "Status report for March 2001.doc"
Syntax
<Result> = fLongName(<File path> [, <Options>])
<Result>: Character string
  • Long name of the file or directory. Only the long name of the file or directory is returned.
  • Empty string ("") if an error occurred (file or directory not found). 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.
<Options>: Optional Integer constant
Versions 15 and later
Used to specify the format of function result. By default, fLongName returns a character string in Ansi format.
fPathUNICODE<Result> will be a character string in Unicode format.

Note: The result of fLongName is always a character string in ANSI format, the fPathUNICODE constant is only used to store the result in a Unicode character string.
New in version 15
Used to specify the format of function result. By default, fLongName returns a character string in Ansi format.
fPathUNICODE<Result> will be a character string in Unicode format.

Note: The result of fLongName is always a character string in ANSI format, the fPathUNICODE constant is only used to store the result in a Unicode character string.
Used to specify the format of function result. By default, fLongName returns a character string in Ansi format.
fPathUNICODE<Result> will be a character string in Unicode format.

Note: The result of fLongName is always a character string in ANSI format, the fPathUNICODE constant is only used to store the result in a Unicode character string.
Remarks

Long names

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.
fLongName returns:
  • the long name of the file or directory if <File path> is expressed in short names (name with 8 characters or less, containing a "~").
  • the name of the specified file if the name of the file in <File path> is:
    • expressed as long name (name exceeding 8 characters),
    • made of 8 characters (or less) with no tilde ("~".
  • the name of the specified directory if the name of the directory in <File path> is:
    • expressed as long name (name exceeding 8 characters),
    • made of 8 characters (or less) with no tilde ("~".
Component : wd240std.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment