CimDatabase.CreateTable (method)

Adds a new table to the Database.
Syntax: Set CimTable = object.CreateTable ( newTableID, tableType )
newTableID As String - The name of the table to create
tableType As CimTableEnum - The type of table to create
Description: The CimDatabase.CreateTable method allows you to create a new table with a specified type.

Note: Only tables of type: cimDataTable, cimGroupTable, and cimExternalTable can be created.


Dim project as CimProject
set project = CreateObject("CimProject")
project.OpenLocalProject "c:\cimpdemo\cimpdemo.gef"
Dim database as CimDatabase
set database = project.DataBase
Set table = database.CreateTable("TABLE_A", cimDataTable)