Share via


DictTable.Indexname2id(String) Method

Definition

Returns the ID of an index that is specified by name.

public:
 virtual int Indexname2id(System::String ^ name);
public virtual int Indexname2id (string name);
abstract member Indexname2id : string -> int
override this.Indexname2id : string -> int
Public Overridable Function Indexname2id (name As String) As Integer

Parameters

name
String

The name of the index.

Returns

The ID of the index that is specified by the name parameter; 0 (zero) if there is no index that has a name that equals the name value.

Remarks

The following example shows the retrieval of the ID of an index that is specified by name.

DictTable dt; 
dt = new DictTable(tablenum(CustTable)); 
if (dt) 
{ 
    print(strfmt("Index ID: %1", dt.indexName2Id("TypeIdx"))); 
}

Applies to