PInvce::GetPrevious (Interface: PInvce)
 
Gets the previous Purchase Invoice.
 
VARIANT_BOOL GetPrevious ()
 
Return value
True if the file was successfully positioned on the previous record, otherwise false.
 
Remarks
The order in which the previous record is sought, is determined by the preceding SeekBy-method.
When a filter is in effect (see SetFilter), this method positions on the previous record in the record set determined by the filter, and a call of any SeekBy-method does not modify the sort order nor the result of subsequent calls to this method.
 
See Also
CreatePInvce
SeekBySysNum
GetDBStatus
GetNext
 
Samples
 
C++
 
// Navigate through the file in reverse order
pPInvce->SeekBySysNum (smLast, 0);
while (pPInvce->GetDBStatus () == 0)
{
    // Process record data

    pPInvce->GetPrevious ();
}

C#
 
// Navigate through the file in reverse order
oPInvce.SeekBySysNum (eSeekMode.smLast, 0);
while (oPInvce.GetDBStatus () == 0)
{
    // Process record data

    oPInvce.GetPrevious ();
}

VBS
 
' Navigate through the file in reverse order
Call oPInvce.SeekBySysNum(smLast, 0)
While oPInvce.GetDBStatus() = 0
    ' Process record data

    Call oPInvce.GetPrevious()
Wend

VB.NET
 
' Navigate through the file in reverse order
oPInvce.SeekBySysNum(eSeekMode.smLast, 0)
While oPInvce.GetDBStatus() = 0
    ' Process record data

    oPInvce.GetPrevious()
End While