|
Seeks an Analytical Unit entry by its kind, unit and book date. |
|
|
VARIANT_BOOL SeekByKindUnitDate ( enum eSeekMode eSeekMode, BSTR bsKind, BSTR bsUnit, DATE dBookDate ) |
|
|
Key information | | | Key segment information | Segment Name | Type | Order | Collation | pAnaKind | BSTR | Ascending | Hierarchy | pAnaAccount | BSTR | Ascending | Hierarchy | pBookDate | DATE (date) | Ascending | - |
| | Parameters | eSeekMode | [in] A value of the 'eSeekMode' enumeration. | bsKind | [in] The analytical kind of the analytical entry you want to seek. | bsUnit | [in] The analytical unit of the analytical entry you want to seek. | dBookDate | [in] The book date of the document of which you want to seek an analytical entry. | | Return value |
True if the record with the given properties was found, otherwise false. |
|
See Also |
|
|
|
Samples |
|
|
C++ |
|
// Seek all analytical unit entries for the analytical kind with code = 'KIND' and the analytical unit with code = 'UNIT'
CString strKind = "KIND", strUnit = "UNIT";
pAnUnt->SeekByKindUnitDate (smGreaterOrEqual, (LPCSTR)strKind, (LPCSTR)strUnit, COleDateTime (0, 0, 0, 0, 0, 0).m_dt);
while (pAnUnt->GetDBStatus () == 0 && (CString)pAnUnt->pAnaKind == strKind && (CString)pAnUnt->pAnaAccount == strUnit)
{
// Process record data
pAnUnt->GetNext ();
}
|
|
|
C# |
|
// Seek all analytical unit entries for the analytical kind with code = 'KIND' and the analytical unit with code = 'UNIT'
string strKind = "KIND", strUnit = "UNIT";
oAnUnt.SeekByKindUnitDate (eSeekMode.smGreaterOrEqual, strKind, strUnit, new DateTime ());
while (oAnUnt.GetDBStatus () == 0 && oAnUnt.pAnaKind.ToString () == strKind && oAnUnt.pAnaAccount.ToString () == strUnit)
{
// Process record data
oAnUnt.GetNext ();
}
|
|
|
VBS |
|
' Seek all analytical unit entries for the analytical kind with code = 'KIND' and the analytical unit with code = 'UNIT'
Dim strKind, strUnit
Dim dtBookDate
strKind = "KIND"
strUnit = "UNIT"
Call oAnUnt.SeekByKindUnitDate(smGreaterOrEqual, strKind, strUnit, dtBookDate)
While oAnUnt.GetDBStatus() = 0 And oAnUnt.pAnaKind = strKind And oAnUnt.pAnaAccount = strUnit
' Process record data
Call oAnUnt.GetNext()
Wend
|
|
|
VB.NET |
|
' Seek all analytical unit entries for the analytical kind with code = 'KIND' and the analytical unit with code = 'UNIT'
Dim strKind, strUnit As String
Dim dtBookDate As Date
strKind = "KIND"
strUnit = "UNIT"
oAnUnt.SeekByKindUnitDate(eSeekMode.smGreaterOrEqual, strKind, strUnit, dtBookDate)
While oAnUnt.GetDBStatus() = 0 And oAnUnt.pAnaKind = strKind And oAnUnt.pAnaAccount = strUnit
' Process record data
oAnUnt.GetNext()
End While
|
|