IsColumnIndexed Method
Description
Determine whether an attribute column in an idb file or other editable cursor-based dataset is indexed.
Syntax
Visual Basic |
---|
Public Function IsColumnIndexed( _ ByVal nDataset As Integer, _ ByVal column As String _ ) 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.
- column
- The column which is to have its index deleted must be identified by name. These names are not case-sensitive.
Returns
- -1 (True) – Column has an index
0 (False) – Column does not have an index
Remarks
Available: D SISpy
Group:
Example
Dim hasIndex as Boolean = CBool( mapobject.IsColumnIndexed ( datasetNo, “Address” ) )