|
Seeks an Analytical Centre entry by its account, kind and centre. |
|
|
VARIANT_BOOL SeekByAccKindCentre ( enum eSeekMode eSeekMode, BSTR bsAccNum, BSTR bsKind, BSTR bsCentre, DATE dBookDate ) |
|
|
Key information | | | Key segment information | Segment Name | Type | Order | Collation | pAccount | BSTR | Ascending | Case sensitive | pAnaKind | BSTR | Ascending | Hierarchy | pAnaAccount | BSTR | Ascending | Hierarchy | pBookDate | DATE (date) | Ascending | - |
| | Parameters | eSeekMode | [in] A value of the 'eSeekMode' enumeration. | bsAccNum | [in] The general account of the analytical entry you want to seek. | bsKind | [in] The analytical kind of the analytical entry you want to seek. | bsCentre | [in] The analytical centre 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 centre entries for the general account with number = '601', the analytical kind with code = 'KIND' and the analytical centre with code = 'CENT'
CString strAccNum = "601", strKind = "KIND", strCentre = "CENT";
pAnCnt->SeekByAccKindCentre (smGreaterOrEqual, (LPCSTR)strAccNum, (LPCSTR)strKind, (LPCSTR)strCentre, COleDateTime (0, 0, 0, 0, 0, 0).m_dt);
while (pAnCnt->GetDBStatus () == 0 && (CString)pAnCnt->pAccount == strAccNum && (CString)pAnCnt->pAnaKind == strKind && (CString)pAnCnt->pAnaAccount == strCentre)
{
// Process record data
pAnCnt->GetNext ();
}
|
|
|
C# |
|
// Seek all analytical centre entries for the general account with number = '601', the analytical kind with code = 'KIND' and the analytical centre with code = 'CENT'
string strAccNum = "601", strKind = "KIND", strCentre = "CENT";
oAnCnt.SeekByAccKindCentre (eSeekMode.smGreaterOrEqual, strAccNum, strKind, strCentre, new DateTime ());
while (oAnCnt.GetDBStatus () == 0 && oAnCnt.pAccount.ToString () == strAccNum && oAnCnt.pAnaKind.ToString () == strKind && oAnCnt.pAnaAccount.ToString () == strCentre)
{
// Process record data
oAnCnt.GetNext ();
}
|
|
|
VBS |
|
' Seek all analytical centre entries for the general account with number = '601', the analytical kind with code = 'KIND' and the analytical centre with code = 'CENT'
Dim strAccNum, strKind, strCentre
Dim dtBookDate
strAccNum = "601"
strKind = "KIND"
strCentre = "CENT"
Call oAnCnt.SeekByAccKindCentre(smGreaterOrEqual, strAccNum, strKind, strCentre, dtBookDate)
While oAnCnt.GetDBStatus() = 0 And oAnCnt.pAccount = strAccNum And oAnCnt.pAnaKind = strKind And oAnCnt.pAnaAccount = strCentre
' Process record data
Call oAnCnt.GetNext()
Wend
|
|
|
VB.NET |
|
' Seek all analytical centre entries for the general account with number = '601', the analytical kind with code = 'KIND' and the analytical centre with code = 'CENT'
Dim strAccNum, strKind, strCentre As String
Dim dtBookDate As Date
strAccNum = "601"
strKind = "KIND"
strCentre = "CENT"
oAnCnt.SeekByAccKindCentre(eSeekMode.smGreaterOrEqual, strAccNum, strKind, strCentre, dtBookDate)
While oAnCnt.GetDBStatus() = 0 And oAnCnt.pAccount = strAccNum And oAnCnt.pAnaKind = strKind And oAnCnt.pAnaAccount = strCentre
' Process record data
oAnCnt.GetNext()
End While
|
|