DictTable.objectMethod Method [AX 2012]

Returns the name of an instance method that is specified by index.

public str objectMethod(int methodNumber, [TableScope tableScope])

Run On

Called

Parameters

methodNumber
Type: int
The one-based index to the list of instance methods for the table, in AOT order.
tableScope
Type: TableScope Enumeration

Return Value

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

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

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

Community Additions

ADD
Show: