FileSpec.Path Property | |
A string representing the path defined to this file specification.
Namespace:
VO
Assembly:
VOSystemClasses (in VOSystemClasses.dll) Version: 2.21
Syntax VIRTUAL PROPERTY Path AS USUAL GET SET
public virtual Usual Path { get; set; }
Request Example
View SourceProperty Value
Type:
UsualA string representing the path defined to this file specification.
Remarks
A string representing the path defined to this file specification. The path may have been assigned explicitly or as part of a longer file specification (assigned either as an instantiation parameter or as part of a file name or full path assignment).
When accessing FileSpec:Path, the requested path is returned with a leading slash and when applicable a trailing slash.
When assigning FileSpec:Path, you can specify a path with or without leading or trailing slashes. To specify the root, assign a single slash. Assigning a NULL_STRING (or NIL) to the drive means that the drive is unknown or unspecified; the various functions and objects that use the file specification to locate the file looks on whatever default drive would apply if a file name without a drive is specified.
Assigning a value to the path normally does not affect the drive, file name, or extension. If a drive is included in the path, it is assigned to the path.
Examples
Here are some examples of strings that are returned by FileSpec:Path, with an explanation of what they indicate:
1\data\customer
2\
3<EmptyString>
Here are some examples of assigning strings to FileSpec:Path, with an explanation of the results:
1oFS:Path := NIL
2oFS:Path := ""
3oFS:Path := "\"
4oFS:Path := "data"
5oFS:Path := "\data"
6oFS:Path := "data\"
7oFS:Path := "\data"
8oFS:Path := "data\cust"
9oFS:Path := "\data\cust"
10oFS:Path := "d:data"
11
12oFS:Path := "d:\data"
13
14oFS:Path := "d:\"
15
16oFS:Path := "d:"
17
See Also