RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
FileCtrl.ProcessPath Function

Parses a file name into its constituent parts.

Pascal
procedure ProcessPath(const EditText: string; var Drive: Char; var DirPart: string; var FilePart: string);
C++
ProcessPath(const AnsiString EditText, Char Drive, AnsiString DirPart, AnsiString FilePart);

FileCtrl

Call ProcessPath to parse a file name into its drive, path, and file name.  

Pass the full file name that should be parsed as the EditText parameter. EditText must refer to an existing file or directory name. 

ProcessPath returns the indicated drive, directory, and file name as the Drive, DirPart, and FilePart parameters. 

 

ExtractFileDir 

ExtractFileDrive 

ExtractFileExt 

ExtractFileName 

ExtractFilePath

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!