Skip to content

Flow documentation · legacy product

ExtractFileDrive ​

Declaration ​

Function ExtractFileDrive( const FileName : string) : string

Example ​

pascal
procedure OnMapEvent(var Value:Variant);
begin
  Value := ExtractFileDrive(Source.FileCon.CurrentFilename);
end;

Description ​

Returns the drive portion of a file path which includes a filename. Returns blank string if no drive or directory is present in the input parameter.