[Overview][Constants][Types][Procedures and functions][Variables][Index] Reference for unit 'LazFileUtils' (#lazutils)

ExtractFileNameOnly

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

Declaration

Source position: lazfileutils.pas line 42

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 extra 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.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.