ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Standard functions / External file functions
  • Long names
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Returns the long name of a file or directory.
// Récupération du nom long d'un fichier
ResNomLong = fLongName("C:\MesRép~1\Compte~1.doc")
// fNomLong renvoie "Compte-Rendu Mars 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 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.
<Options>: Optional Integer constant
Used to specify the format of function result. By default, fLongName returns a character string in Ansi format.
fUnicodePath<Result> will be a Unicode string.

Note The result of the fLongName function is always a string in Ansi format, the constant fCheminUnicode constant can only be used to store the result in a Unicode string.
Remarks

Long names

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),
    • 8 characters long (or less) and does not contain a 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),
    • 8 characters long (or less) and does not contain a tilde ("~").
Business / UI classification: Business Logic
Component: wd300std.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/28/2025

Send a report | Local help