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