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);

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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!