PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • 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 short name of a file or directory.
// Retrieve the short name of a file
ResShortName = fShortName("C:\MyDirectories\Report March 2001.doc")
// fShortName returns "March~1.doc"
Syntax
<Result> = fShortName(<File Path> [, <Options>])
<Result>: Character string
  • Short name of the file or directory. Only the short 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.
Versions 15 and later
WindowsLinux This parameter can be in Ansi or Unicode format.
New in version 15
WindowsLinux This parameter can be in Ansi or Unicode format.
WindowsLinux This parameter can be in Ansi or Unicode format.
<Options>: Optional Integer constant
Versions 15 and later
Used to specify the format of function result. By default, fShortName returns a character string in Ansi format.
fPathUNICODE<Result> will be a character string in Unicode format.

Note: The result of fShortName 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, fShortName returns a character string in Ansi format.
fPathUNICODE<Result> will be a character string in Unicode format.

Note: The result of fShortName 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, fShortName returns a character string in Ansi format.
fPathUNICODE<Result> will be a character string in Unicode format.

Note: The result of fShortName 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.
fShortName returns:
  • the short name of the file or directory if <File Path> is expressed in long names (names exceeding 8 characters).
  • the name of the specified file if the name of the file in <File Path> is:
    • expressed as short name (name containing up to 8 characters, containing a tilde "~"),
    • made of 8 characters or less.
  • the name of the specified directory if the name of the directory in <File Path> is:
    • expressed as short name (name containing up to 8 characters, containing a tilde "~"),
    • made of 8 characters or less.
Components
WINDEVReports and Queries wd230std.dll
Linux wd230std.so
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment