FileSpec.AppendToPath Method | |
Append a subdirectory to the end of this file specification's path.
Namespace:
VO
Assembly:
VOSystemClasses (in VOSystemClasses.dll) Version: 2.21
Syntax VIRTUAL METHOD AppendToPath(
cDirectory
) AS USUAL CLIPPER
[ClipperCallingConventionAttribute(new string[] { ... })]
public virtual Usual AppendToPath(
Usual cDirectory = default
)
Request Example
View SourceParameters
- 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 |
---|
If the path was previously unknown (NIL), cDirectory becomes the new path.
|
Examples
The following examples illustrate the use of FileSpec:AppendToPath():
1
2oFS:Path := "d:\data"
3oFS:AppendToPath("cust")
4
5oFS:Path := "d:\data"
6oFS:AppendToPath("\cust\")
7
8oFS:Path := "\"
9oFS:AppendToPath("data")
10
11oFS:Path := NIL
12oFS:AppendToPath("cust")
13
14oFS:Path := "d:\data"
15oFS:AppendToPath("cust\1993\budget")
See Also