Click or drag to resize

FileSpec.FileName Property

X#
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 
Request Example View Source

Property Value

Type: Usual
A 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:
X#
 1// Changes only the file name
 2oFS:FileName := "cust"
 3// Changes file name and extension
 4oFS:FileName := "cust.dbx"
 5// Changes path and file name
 6oFS:FileName := "data\cust"
 7// Changes path and file name
 8oFS:FileName:="\data\cust"
 9// Changes drive, path, file name
10oFS:FileName:="d:cust"
See Also