Click or drag to resize

FileSpec.AppendToPath Method

X#
Append a subdirectory to the end of this file specification's path.

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

Parameters

cDirectory (Optional)
Type: Usual
The subdirectory to be appended, with or without leading and trailing slashes. A list of subdirectories separated by slashes can also be appended.

Return Value

Type: Usual
The resulting path.
Remarks
Tip Tip
If the path was previously unknown (NIL), cDirectory becomes the new path.
Examples
The following examples illustrate the use of FileSpec:AppendToPath():
X#
 1// d:\data\cust
 2oFS:Path := "d:\data"
 3oFS:AppendToPath("cust")
 4// d:\data\cust
 5oFS:Path := "d:\data"
 6oFS:AppendToPath("\cust\")
 7// \data
 8oFS:Path := "\"
 9oFS:AppendToPath("data")
10// \cust
11oFS:Path := NIL
12oFS:AppendToPath("cust")
13// d:\data\cust\1993\budget
14oFS:Path := "d:\data"
15oFS:AppendToPath("cust\1993\budget")
See Also