CC.Table Class

Summary

Creates a new table with specified fields.

Syntax

CC.Table( string view)

Methods

Create(array options)

If the table exists, but it is not open in the workspace, it is overwritten. If the table exists and it is open in the workspace, existing fields will be retained and any newly defined fields will be added.

Option Type Description
FileName string Name of the file to be created
FieldSpecs array An array of field name, type, width and decimals
AddEmptyRecords int Optional. Number of empty records to add to the output table
DeleteExisting bool If the table exists delete it before creating the new one

Example

obj = CreateObject("CC.Table")
opt.FileName = "c:\\temp\\mytable.bin"
opt.FieldSpecs = { {"f1", "int", 4, 0}, {"f2", "int", 4, 0}}
opt.AddEmptyRecords = 30
obj.Create(opt)

See Also:

AddLayerDB

AddTables

Calculate Tables

Caliper.Charts

CC.ModifyTableOperations

CC.Table

Clustering

Data.Finder

Data.Geocoder

PostgreSQL Connect

PostgreSQL Command

Routing.Bands

Routing.Path

Routing.Router

Table

Utilities.Mail