-
Notifications
You must be signed in to change notification settings - Fork 0
cDataSet.AddDataTable
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