Share via


FormDataSource.prev Method

Definition

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

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

Returns

A non-zero integer if the operation succeeds.

Remarks

This method can be used to iterate through the records of a data source in reverse order. The prev 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 prev.

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

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

Applies to