DictTable.indexObject Method

Creates an instance of the DictTable class for the index that is specified by ID.

Syntax

public DictIndex indexObject(IndexId indexId)

Run On

Called

Parameters

Return Value

Type: DictIndex Class
A DictIndex object for the index that is specified by the indexId parameter; nullNothingnullptrunita null reference (Nothing in Visual Basic) if the object could not be created.

Examples

The following example shows how to create a DictIndex object for the unique index of a table.

DictTable dt; 
DictIndex di; 
 
dt = new DictTable(tablenum(SysUserInfo)); 
 
if (dt) 
{ 
     di = dt.indexObject(dt.indexUnique()); 
     if (di) 
     { 
        print di.name(); 
     } 
}

See Also

DictTable Class

DictIndex Class