|
Creates a new table in the existing dictionary and a data file at the location specified in the table properties.
Header file: DDF.HRequires: W3DBAV75.DLL or higher version
PRESULT PvAddTable( WORD dictHandle, TABLEINFO* tableProps, COLUMNMAP* columnList, WORD columnCount, INDEXMAP* indexList, WORD indexCount);
|
In
|
dictHandle
|
Handle of an open dictionary returned by PvOpenDictionary().
|
|
In
|
tableProps
|
Structure containing table information.
|
|
In
|
columnList
|
Array of columns defined in the table.
|
|
In
|
columnCount
|
Number of columns in columnList.
|
|
In
|
indexList
|
Array of index definitions.
|
|
In
|
indexCount
|
Number of indexes in the following indexList array.
|
You must first open a dictionary successfully using PvOpenDictionary().
This function has to be provided with table information, columns, and indexes. indexCount and indexList are optional parameters because indexes are not required to create a table.
This function will fail if a table with the same name is already present in the specified dictionary.
Table properties must be set up correctly and an array of at least one column must be passed.
You will need to allocate and release COLUMNMAP and INDEXMAP arrays and TABLEINFO structure used to describe table.
PvStart()
PvOpenDictionary()
PvGetTableNames()
PvFreeTableNames()
PvDropTable()
PvCloseDictionary()
PvStop()
|
Chapter contents
Prev topic: PvAddLicense()
|