Creates a table through the selected RDD from a database structure array and returns whether creation succeeded.
<cFileName> is the table or database file name to create. <aStruct> is an array of field-definition arrays, one per field. Each field-definition array must contain at least these standard structure positions:
| Position |
Metasymbol |
dbstruct.ch |
| 1 |
cName |
DBS_NAME |
| 2 |
cType |
DBS_TYPE |
| 3 |
nLength |
DBS_LEN |
| 4 |
nDecimals |
DBS_DEC |
If <cRDD> is supplied, Harbour uses that RDD driver; otherwise the current default RDD is used. If <lKeepOpen> is supplied as a logical value, Harbour keeps the created table open. When <lKeepOpen> is .T., the created table is opened in a new work area. When <lKeepOpen> is .F., the created table is opened in the current work area.
Harbour also supports optional alias, delimiter, codepage, and connection arguments. If <cFileName> or <aStruct> is invalid, or a field-definition item is malformed, Harbour raises a database-command argument error.