Icon CopyTable Method

procedure CopyTable(const NewDatabaseName: String; const
      NewTableName: String; CopyData: Boolean=True)

Usage

Call the CopyTable method to copy the contents of the table to another new table. The NewDatabaseName parameter specifies the new database directory, for local sessions, or database name, for remote sessions, in which to copy the table. The NewTable parameter specifies the name of the table to create. The CopyData parameter indicates whether the data in the table should be copied, and defaults to True. The table may be open or closed when executing this method. If the table is open, then this method will respect any active filters or ranges on the table when copying the data to the new table.

Information This method will overwrite any existing table with the same name in the specified destination database without raising an exception, so please be careful when using this method.
Image