DictTable.staticMethod Method

Returns the name of a static method that is specified by index.

Syntax

public str staticMethod(int methodNumber)

Run On

Called

Parameters

  • methodNumber
    Type: int
    The one-based index to the list of static methods for the table, in AOT order.

Return Value

Type: str
The name of the static method that is specified by the methodNumber parameter; an empty string if the methodNumber value is not a valid static method index.

Examples

The following example shows the retrieval of the name of each static method in a table.

DictTable dt; 
int       i; 
 
dt = new DictTable(tablenum(CustTable)); 
if (dt) 
{ 
    for (i=1; i <= dt.staticMethodCnt() ; i++) 
    { 
        print dt.staticMethod(i); 
    } 
}

See Also

DictTable Class

DictTable.staticMethodCnt Method

DictTable.staticMethodObject Method