FileSpec.FullPath Property (Typed) | |
A string representing the full path name defined to this file specification.
Namespace:
XSharp.VO.SDK
Assembly:
XSharp.VOSystemClasses (in XSharp.VOSystemClasses.dll) Version: 2.21
Syntax VIRTUAL PROPERTY FullPath AS STRING GET SET
public virtual string FullPath { get; set; }
Request Example
View SourceProperty Value
Type:
StringA string representing the full path name defined to this file specification.
Remarks
A string representing the full path name defined to this file specification. The individual components of the full path name 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:FullPath, the requested path name is returned with drive, path, file name, and extension.
However, if the file was not fully specified and the file has not been found since, parts of the path can be unknown. Any part that is not known is omitted from the return value.
When assigning FileSpec:FullPath, you can specify a simple file name, a file name with an extension, or a full path complete with drive. The information given is parsed and assigned to the appropriate components; in addition, when assigning a string to FileSpec:FullPath, those parts that are omitted in the string are stored as unknown or unspecified.
Tip |
---|
FileSpec does not distinguish between a file with no extension and a subdirectory (e.g., C:\CAVOxx, in which the directory "CAVOxx" appears to be a file with no extension). |
Examples
Here are some examples of strings that are returned by FileSpec:FullPath, with an explanation of what they indicate:
1
2c:\data\customer\custdata.dbf
3
4\data\customer\custdata.dbf
5
6c:\custdata.dbf
7
8custdata.dbf
9
10\custdata.dbf
11
12c:\data\customer\custdata
13
14custdata
Here are some examples of assigning strings to FileSpec:FullPath, with an explanation of the results:
1
2oFS:FileSpec := ("String")
3? oFS:FullPath
4
5oFS:FullPath := "cust"
6
7oFS:FullPath:= "cust.dbx"
8
9
10oFS:FullPath := "data\cust"
11
12oFS:FullPath := "\data\cust"
13
14
15oFS:FullPath := "d:cust"
See Also