Show: Delphi C++
Display Preferences

System.AnsiStrings.ExtractFileName

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function ExtractFileName(const FileName: AnsiString): AnsiString;

C++

extern DELPHI_PACKAGE System::AnsiString __fastcall ExtractFileName(const System::AnsiString FileName)/* overload */;

Properties

Type Visibility Source Unit Parent
function public
System.AnsiStrings.pas
System.AnsiStrings.hpp
System.AnsiStrings System.AnsiStrings

Description

Extract name and extension parts of filename.

ExtractFileName extracts the name and extension parts of the given filename. The resulting AnsiString consists of the leftmost characters of FileName, starting with the first character after the colon or backslash that separates the path information from the name and extension. The resulting AnsiString is equal to FileName if FileName contains no drive and directory parts.

See Also

Code Examples


Personal tools
RAD Studio 10.2 Tokyo
In Other Languages
Previous Versions
Assistance