Check if table Index name is already in database
Namespace: Wiker.WIDatabaseAssembly:
Syntax
C# |
---|
public bool Exists( string indexName ) |
Visual Basic |
---|
Public Function Exists ( _ indexName As String _ ) As Boolean |
Visual C++ |
---|
public: bool Exists( String^ indexName ) |
Parameters
- indexName
- Type: System..::..String
Index name to check for
Return Value
bool
Examples

/* Create new instance of WIDatabase */ WIDB = new WIDatabase(DBInfo); /* Check if Index 'IdxFirst' is already created for table 'Persons' */ WIDB.Index.Table("Persons"); if (!WIDB.Index.Exists("IdxFirst")) MessageBox.Show("Index IdxFirst does not exist in table Persons");