Click or drag to resize

FileSpec.PathUp Method (Typed)

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

Namespace:  XSharp.VO.SDK
Assembly:  XSharp.VOSystemClasses (in XSharp.VOSystemClasses.dll) Version: 2.21
Syntax
 VIRTUAL METHOD PathUp() AS STRING
Request Example View Source

Return Value

Type: String
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