Share via


FormDataSource.next Method

Definition

Moves the focus to the next record in the data source.

public:
 override int next();
public override int next ();
override this.next : unit -> int
Public Overrides Function next () As Integer

Returns

A non-zero integer if the operation succeeds.

Remarks

The next method can be overridden on a form data source. Right-click the Methods node under the data source, point to Override Method, and then click next.

The following example overrides the next method on a data source to return the next record from a different data source.

int next() 
{ 
    return inventTrans_ds.next(); 
}

Applies to