Symphony Framework
ReadPrev Method
Example 
Symphony.dB Namespace > DBAccess Class : ReadPrev Method
The returned data area.
Read the previous row (record) from the table.
Syntax
public DBResponse ReadPrev( 
   out string dataArea
)

Parameters

dataArea
The returned data area.

Return Value

Returns a value indicating the status of the call.
Remarks
The previous available row is returned. A previous Read(String,Int32,String) or ReadFirst method call will determine the index used. If no previous table access has been performed, the primary index will be used.
Example
string itemRecord;
Int32 chan;
Symphony.dB.DBAccess itemAccess = new DBAccess("ITEM", "DATABASE:DatabaseManager");
if (itemAccess.OpenInput(out chan) == DBResponse.DBOK)
{
    //read the last row from the table
    itemAccess.ReadLast(0, out itemRecord);
    while (itemAccess.ReadNext(out itemRecord) == DBResponse.DBOK)
    {

    }
}
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

DBAccess Class
DBAccess Members