Skip to content

cDataSet.AddDataTable

Brendon edited this page Mar 17, 2024 · 1 revision

AddDataTable

returns boolean

accepts (dat As cDataTable, blnOverWriteIfExists As Boolean)

The correct way to add a table to the cDataSet is with this method.

If you pass it a cDataTable it will add that cDataTable to cDataSet's DataTables Dictionary.

The blnOverWriteIfExists input parameter determines whether this operation will overwrite a cDataTable with the same name or not. If there is already a cDataTable with the same name, and blnOverWriteIfExists is True then the function will return False.

If the cDataTable you pass does not have a value in its Name property then the AddDataTable will assign it the next name in its own numbering sequence starting from cDataTable1. It will automatically find the first available unused cDataTableX value and assign that name to the cDataTable and save the cDataTable in the cDataSet under that name.

See Also: cDataSet.DeleteDataTable

Clone this wiki locally