Click or drag to resize

DbServer.FileSpec Property (Typed)

X#
The FileSpec object that defines the path and file name of the DBF file.

Namespace:  XSharp.VO.SDK
Assembly:  XSharp.VORDDClasses (in XSharp.VORDDClasses.dll) Version: 2.19
Syntax
 VIRTUAL PROPERTY FileSpec AS FileSpec GET 
Request Example View Source

Property Value

Type: FileSpec
The FileSpec object that defines the path and file name of the DBF file.
Remarks
The FileSpec object that defines the path and file name of the DBF file. If the DBServer was originally instantiated with a FileSpec object, this is that original FileSpec object; if the server was originally instantiated with a file name in string format, a FileSpec object is created. Note that the path of the file specification is exactly as originally entered. To store the full path of the file in the file specification, use the FileSpec:Find() method.
Examples
This example opens a data server using a FileSpec object, the retrieves information based on the server's FileSpec property:
X#
1oFSSales := FileSpec{"c:\data\cust\sales.dbf"}
2oDBSales := DBServer{oFSSales}
3? oDBSales:FileSpec:Drive        // C:
4? oDBSales:FileSpec:Extension    // .DBF
See Also