Cadcorp SIS API Methods

DropColumn Method

Description

Delete an attribute column from the schema of an idb file or other editable cursor-based dataset.

Syntax

Visual Basic
Public Sub DropColumn( _
   ByVal nDataset As Integer, _
   ByVal column As String _
)

Parameters

nDataset
The idb file is referenced by its dataset number which can be determined from the overlay in which it is displayed.
 
column
The column to be dropped must be identified by name. These names are not case-sensitive. An exception will be raised if the column does not exist.
 
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.DropColumn ( datasetNo, "Address" )


Send comments on this topic.

Click to return to www.cadcorp.com

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