Sndry::SeekByBookDate (Interface: Sndry)
 
Seeks a Sundry Document by its book date.
 
VARIANT_BOOL SeekByBookDate (
    enum eSeekMode eSeekMode,
    DATE dBookDate
)
 
Key information
This method uses key number 2 (See SwapKey).
This key allows duplicates.
 
Key segment information
Segment NameTypeOrderCollation
pBookDateDATE (date)Ascending-
 
Parameters
eSeekMode
[in] A value of the 'eSeekMode' enumeration.
dBookDate
[in] The book date of the Sundry Document you want to seek.
 
Return value
True if the record with the given properties was found, otherwise false.
 
See Also
CreateSndry
GetDBStatus
GetNext
 
Samples
 
C++
 
// Seek all documents with book date = 28/06/2024
COleDateTime odtBookDate;
odtBookDate.SetDate (2024, 6, 28);
pSndry->SeekByBookDate (smEqual, odtBookDate);
while (pSndry->GetDBStatus () == 0 && (DATE)pSndry->pBookDate == odtBookDate)
{
    // Process record data

    pSndry->GetNext ();
}

C#
 
// Seek all documents with book date = 28/06/2024
DateTime dtBookDate = new DateTime (2024, 6, 28);
oSndry.SeekByBookDate (eSeekMode.smEqual, dtBookDate);
while (oSndry.GetDBStatus () == 0 && (DateTime)oSndry.pBookDate == dtBookDate)
{
    // Process record data
    
    oSndry.GetNext ();
}

VBS
 
' Seek all documents with book date = 28/06/2024
Dim dtBookDate
dtBookDate = #6/28/2024#
Call oSndry.SeekByBookDate(smEqual, dtBookDate)
While oSndry.GetDBStatus() = 0 And oSndry.pBookDate = dtBookDate
    ' Process record data

    Call oSndry.GetNext()
Wend

VB.NET
 
' Seek all documents with book date = 28/06/2024
Dim dtBookDate As Date
dtBookDate = #6/28/2024#
oSndry.SeekByBookDate(eSeekMode.smEqual, dtBookDate)
While oSndry.GetDBStatus() = 0 And oSndry.pBookDate = dtBookDate
    ' Process record data

    oSndry.GetNext()
End While