JCL Help:FileGetDisplayName

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Returns the display name of a path.


Pascal

 function FileGetDisplayName(const FileName: string): string;


Parameters

Parameters Description
const FileName: string The name of the file for which you want to know the display name. The file must physically exist on the drive or the function fails.


Return Value

If the function succeeds it returns the display name of the supplied file. If the function fails the result is a copy of the supplied filename.


Description

FileGetDisplayName returns the display name of the specified file. Usually the display name will be equal to the long filename without the extension, but this is not necessarily always true.


See Also

PathGetShortName PathGetLongName FileGetTypeName


About

Unit

JclFileUtils


Donator

Pelle F. S. Liljendal


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page