Click or drag to resize

FileSpec.PathUp Method

X#
Remove the last subdirectory from the end of this file specification's path.

Namespace:  VO
Assembly:  VOSystemClasses (in VOSystemClasses.dll) Version: 2.19
Syntax
 VIRTUAL METHOD PathUp() AS USUAL
Request Example View Source

Return Value

Type: Usual
The resulting path.
Remarks
If the path was previously the root or unknown (NIL), PathUp() does not change the path. Other components — drive, file name, and extension — are not affected.
Examples
For example, to store selected data in a backup directory at a peer level to the actual data directory:
X#
1oFSCust := FileSpec{"c:\data\cust.dbf"}
2oFSCustBackup := FileSpec{oFSCust:FullPath}
3oFSCustBackup:PathUp()
4oFSCustBackup:AppendToPath("backup")
See Also