Share via


FormDataSource.prev Method

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

Syntax

public int prev()

Run On

Client

Return Value

Type: int
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.

Examples

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(); 
}

See Also

FormDataSource Class

FormDataSource.prevPage Method

FormDataSource.next Method