Show: Delphi C++
Display Preferences

System.AnsiStrings.ChangeFileExt

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function ChangeFileExt(const FileName, Extension: AnsiString): AnsiString;

C++

extern DELPHI_PACKAGE System::AnsiString __fastcall ChangeFileExt(const System::AnsiString FileName, const System::AnsiString Extension)/* overload */;

Properties

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

Description

Change filename extension.

ChangeFileExt changes a filename's extension. FileName specifies a filename with or without an extension, and Extension specifies the new extension for the filename. The new extension can be an empty AnsiString or a period followed by the extension character string.

See Also

Code Examples


Personal tools
In Other Languages
Previous Versions
Assistance