Sign in Join
FPDoc Onlineexperiment

ExtractFileNameOnly function

In unit LazFileUtils

Gets the base file name (without the file extension) in the specified path.

Declaration

pascal
function ExtractFileNameOnly(const AFilename: string): string

Arguments

AFilename

File path and name to examine in the function.

Function result

Base file name in the file path.

Description

ExtractFileNameOnly is a String function used to extract the base file name (without the file extension) from the value in AFilename. Path information, up to the last directory separator (' /' or ' \') or device separator (' :') character, in AFileName is ignored. The file extension, starting at the ' .' character, is also omitted.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.