Function DbCopyStruct() Foundation
Creates a file with the same structure as the file open in a work area.
DbCopyStruct( <cFilename>, [<aFieldNames>] ) --> lSuccess
The function DbCopyStruct() returns a logical value indicating whether the operation was successful. If this value equals .T. (true), a file could be created with the same structure as the file open in the work area.
The database function DbCopyStruct() creates the file <cFilename>using the field definitions from a work area. By specifying the array <aFieldNames>, the number of the fields in the target file can be limited.
Using DbCopyStruct(), temporary files can be created to hold a subset of data during specific processing. DbCopyStruct() is also used to create files for handling data transactions.
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.