Cadcorp SIS API Methods

CreateColumn Method

Description

Add an attribute column to an idb file or other editable cursor-based dataset.

Syntax

Visual Basic
Public Sub CreateColumn( _
   ByVal nDataset As Integer, _
   ByVal nColumn As Integer _
)

Parameters

nDataset
The idb file is referenced by its dataset number which can be determined from the overlay in which it is displayed.
 
nColumn
The column to be added must be defined in the currently loaded schema and is referenced by its index number in the schema.
 
The column to be added must be for a user-defined property, e.g. address$, not an expression or an internal property (one that starts with an underscore). The name of the column will be the same as the _formula$ property of the referenced schema column but without the trailing $, #, & or @. An exception will be raised if a column with this name already exists.
 
It is necessary to call AComRegenView to update the schema display in the Maps Control Bar.
 

Remarks

Available: MM ME MD OD OM SISpy

Group:

Example

sis.CreateColumn ( datasetNo, 0 )


Send comments on this topic.

Click to return to www.cadcorp.com

© Copyright 2000-2017 Computer Aided Development Corporation Limited (Cadcorp).