DbFileSpec Class (Typed) |
|
Namespace: XSharp.VO.SDK
The DbFileSpec type exposes the following members.
| Name | Description | |
|---|---|---|
| DbFileSpec(String, String, Array) |
Instantiates a DBFileSpec object and fills its instance variables with DBF information.
| |
| DbFileSpec(FileSpec, String, Array) |
Instantiates a DBFileSpec object and fills its instance variables with DBF information.
|
| Name | Description | |
|---|---|---|
| DBFAttr |
The DBF file attributes returned as a string type.
| |
| DBFDateChanged |
The DBF file date stamp returned as a date type.
| |
| DBFName |
The DBF file name and extension.
| |
| DBFSize |
The DBF file size.
| |
| DBFTime |
The DBF file time stamp returned as a string.
| |
| DbStruct |
Returns an array containing the structure of the DBF file.
| |
| Delim |
Access the delimiter used for the CopyTo() method.
| |
| FCount |
The number of fields in the DBF file.
| |
| Fields |
The 1-D array of DBF fields to copy out to when using the CopyTo() method.
| |
| FileName |
Assign a file name to the DBFileSpec object.
(Overrides FileName.) | |
| ForBlock |
The FOR condition code block used for the CopyTo() method.
| |
| FullPath |
Assign a full path—including drive, directory, file name, and extension—to the DBFileSpec object.
(Overrides FullPath.) | |
| HeaderSize |
The size of the DBF file header.
| |
| HidRDDs |
The 1-D array of "hidden" RDDs (i.e., DBFMEMO) used for the CopyTo() method.
| |
| IndexNames |
The 1-D array of index files with drive, path, file name, and extension information.
| |
| IsAnsi |
The ANSI/OEM setting used in the DBF file header.
| |
| LastUpDate |
The date of the last update made to the DBF file as reported in the DBF header.
| |
| MemAttr |
The memo file attributes.
| |
| MemBlockSize |
The memo block size used in the memo file.
| |
| MemDateChanged |
The memo file date stamp returned as a date type.
| |
| MemFileExt |
The memo file name extension excluding the file name.
| |
| MemFileName |
The base memo file name excluding the file name extension.
| |
| MemFullPath |
The full path of the memo file, including drive, directory, file name, and extension.
| |
| MemName |
The memo file name and extension.
| |
| MemSize |
The memo file size.
| |
| MemTime |
The memo file time stamp returned as a string.
| |
| Orders |
The 1-D array of OrderSpec objects that are associated with this DBFileSpec object.
| |
| RDD_Name |
The name of the RDD used for instantiation.
| |
| RDD_Version |
The version number of the RDD.
| |
| RDDs |
An array of "hidden" RDDs (such as DBFMEMO) used for instantiation.
| |
| RecCount |
The number of records in the DBF. (Note that "LastRec" is not available in this class, only in the dbServer class)
| |
| RecNo |
The record number for the CopyTo() method when a single record is required.
| |
| Records |
The number of records for the CopyTo() method.
| |
| RecSize |
The record size of the DBF.
| |
| Rest |
A logical determining if the CopyTo() method is to copy all records or the current record to EOF.
| |
| RLockCount |
The number of locked records in the DBF.
| |
| SDF |
A logical determining if the CopyTo() method is to copy out to an SDF file.
| |
| WhileBlock |
A WHILE condition code block used with the CopyTo() method.
|
| Name | Description | |
|---|---|---|
| Copy |
Copies all files associated with DBFileSpec objects to a different drive and/or directory.
| |
| CopyTo |
Copies the DBFileSpec object's DBF file to another data format. This can be used for copying out to another RDD, to a delimited file, or to an SDF file.
| |
| Create |
Create a new DBF file with the given name, using a provided DBStruct array.
| |
| DBFSGetInfo |
Fills in the DBFileSpec object's instance variables. This method is not required when using the Find() method, which will invoke this method internally if the file is found.
| |
| Delete |
Physically deletes all files that are associated with the DBFileSpec object, including memo files and any index files associated with the DBF through OrderSpec objects.
(Overrides Delete.) | |
| Find |
Locates the file defined in the DBFileSpec object using the current directory, SetDefault(), or SetPath(). Fills in the instance variables of the DBFileSpec if successful.
(Overrides Find.) | |
| Move |
Moves and/or renames all files associated with DBFileSpec objects to a different drive and/or directory. Updates DBFileSpec and/or OrderSpec instance variables. Will also rename auto-open index files. Only DBF, MEMO and auto-open index files will get renamed.
| |
| Rename |
Renames files associated with DBFileSpec object. Only DBF/MEMO and auto-open index files will get renamed.
Rename() will not rename a file if it is already open or there is a file name conflict.
To rename files to another directory, use the Move() method and supply a different target file name.
|
1oDBFileSpec := DBFileSpec{"c:\data\custdata.dbf"} 2IF oDBFileSpec:Find() // File exists? 3aDBStruct := oDBFileSpec:DBStruct 4oDBFileSpec:Drive := "d:" 5oDBFileSpec:Create(aDBStruct) 6ENDIF