|
Seeks a Financial Document by its book date. |
|
|
VARIANT_BOOL SeekByBookDate ( enum eSeekMode eSeekMode, DATE dBookDate ) |
|
|
Key information | | | Key segment information | | | Parameters | eSeekMode | [in] A value of the 'eSeekMode' enumeration. | dBookDate | [in] The book date of the Financial Document you want to seek. | | Return value |
True if the record with the given properties was found, otherwise false. |
|
See Also |
|
|
|
Samples |
|
|
C++ |
|
// Seek all documents with book date = 28/06/2024
COleDateTime odtBookDate;
odtBookDate.SetDate (2024, 6, 28);
pFinan->SeekByBookDate (smEqual, odtBookDate);
while (pFinan->GetDBStatus () == 0 && (DATE)pFinan->pBookDate == odtBookDate)
{
// Process record data
pFinan->GetNext ();
}
|
|
|
C# |
|
// Seek all documents with book date = 28/06/2024
DateTime dtBookDate = new DateTime (2024, 6, 28);
oFinan.SeekByBookDate (eSeekMode.smEqual, dtBookDate);
while (oFinan.GetDBStatus () == 0 && (DateTime)oFinan.pBookDate == dtBookDate)
{
// Process record data
oFinan.GetNext ();
}
|
|
|
VBS |
|
' Seek all documents with book date = 28/06/2024
Dim dtBookDate
dtBookDate = #6/28/2024#
Call oFinan.SeekByBookDate(smEqual, dtBookDate)
While oFinan.GetDBStatus() = 0 And oFinan.pBookDate = dtBookDate
' Process record data
Call oFinan.GetNext()
Wend
|
|
|
VB.NET |
|
' Seek all documents with book date = 28/06/2024
Dim dtBookDate As Date
dtBookDate = #6/28/2024#
oFinan.SeekByBookDate(eSeekMode.smEqual, dtBookDate)
While oFinan.GetDBStatus() = 0 And oFinan.pBookDate = dtBookDate
' Process record data
oFinan.GetNext()
End While
|
|