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

FilenameIsWinAbsolute

Determines if the specified value is an absolute file path (not a relative one)

Declaration

Source position: lazfileutils.pas line 45

function FilenameIsWinAbsolute(

  const TheFilename: string

):Boolean;

Arguments

TheFilename

  

Path and file name to use in the function

Function result

True when the file name is not a relative path

Description

FilenameIsWinAbsolute is a Boolean function used to determine if the value in TheFilename contains an absolute file path (and not a relative one).

On Windows, the FilenameIsWinAbsolute function is called in the implementation of FilenameIsAbsolute. FilenameIsWinAbsolute takes Device identifiers into consideration when examine the value in TheFilename. For example:

D:\db\employee.fdb
          

The return value is False if TheFilename (without the optional device identifier)is an empty string (''), or does not start with the directory separator for the environment.

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