[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 43

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.


Version 3.2 Generated 2024-02-25 Home