@DirPart

Parent Previous Next

@DirPart.

Returns a full path to the directory part of the input path which is assumed to identify a file.


Syntax.


 @DirPart(String path) : String

 


This function is often used in combination with @FilePart.


Arguments:


Example:


 String dir, path := "c:\test\file.txt";

 dir := @DirPart(path); //Now dir == "c:\test";