Partilhar via


DictTable.Fieldnext Method

Definition

Overloads

Fieldnext(Int32)

Returns the value of the next field ID during a field iteration of the table.

Fieldnext(Int32, TableScope)

Fieldnext(Int32)

Returns the value of the next field ID during a field iteration of the table.

public:
 virtual int Fieldnext(int fieldId);
public virtual int Fieldnext (int fieldId);
abstract member Fieldnext : int -> int
override this.Fieldnext : int -> int
Public Overridable Function Fieldnext (fieldId As Integer) As Integer

Parameters

fieldId
Int32

Returns

The ID of the next field in the field iteration for the table; 0 (zero) if there are no more fields to iterate.

Remarks

The value of the fieldId parameter should evaluate to 0 (zero) to start the field iteration, and the return value should be used for subsequent calls to the iteration.

The following example iterates through the fields of a table.

DictTable   dt; 
DictField   df; 
int         counter; 
counter = 0; 
dt = new DictTable(tablenum(CustTable)); 
if (dt) 
{ 
    counter = dt.fieldNext(counter); 
    while (counter) 
    { 
        df = dt.fieldObject(counter); 
        if (df) 
        { 
            print strfmt("ID: %1 Name: %2", 
                         df.id(), 
                         df.name() ); 
        } 
        counter = dt.fieldNext(counter); 
    } 
}

Applies to

Fieldnext(Int32, TableScope)

public:
 virtual int Fieldnext(int fieldId, Microsoft::Dynamics::Ax::Xpp::TableScope tableScope);
public virtual int Fieldnext (int fieldId, Microsoft.Dynamics.Ax.Xpp.TableScope tableScope);
abstract member Fieldnext : int * Microsoft.Dynamics.Ax.Xpp.TableScope -> int
override this.Fieldnext : int * Microsoft.Dynamics.Ax.Xpp.TableScope -> int
Public Overridable Function Fieldnext (fieldId As Integer, tableScope As TableScope) As Integer

Parameters

fieldId
Int32
tableScope
TableScope

Returns

Applies to