FileSpec.FileName Property (Typed) | |
A string representing the file name defined to this file specification.
Namespace:
XSharp.VO.SDK
Assembly:
XSharp.VOSystemClasses (in XSharp.VOSystemClasses.dll) Version: 2.21
Syntax VIRTUAL PROPERTY FileName AS STRING GET SET
public virtual string FileName { get; set; }
Request Example
View SourceProperty Value
Type:
StringA 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