FileSpec.FileName Property | |
A string representing the file name defined to this file specification.
Namespace:
VO
Assembly:
VOSystemClasses (in VOSystemClasses.dll) Version: 2.21
Syntax VIRTUAL PROPERTY FileName AS USUAL GET SET
public virtual Usual FileName { get; set; }
Request Example
View SourceProperty Value
Type:
UsualA string representing the file name defined to this file specification.
Remarks
A string representing the file name defined to this file specification. The file 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 full path assignment).
When accessing FileSpec:FileName, the requested file name is returned without a path and extension.
When assigning FileSpec:FileName, 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, only those parts that are specified are changed in the file specification.
Assigning a NULL_STRING (or NIL) means that the file name is unknown or unspecified.
Examples
Here are some examples that use FileSpec:FileName:
1
2oFS:FileName := "cust"
3
4oFS:FileName := "cust.dbx"
5
6oFS:FileName := "data\cust"
7
8oFS:FileName:="\data\cust"
9
10oFS:FileName:="d:cust"
See Also