FormDataSource.prev Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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();
}