| |
| Seeks an Analytical Unit entry by its account, kind and unit. |
| |
 |
VARIANT_BOOL SeekByAccKindUnit ( enum eSeekMode eSeekMode, BSTR bsAccNum, BSTR bsKind, BSTR bsUnit, 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. | | 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 general account with number = '601', the analytical kind with code = 'KIND' and the analytical unit with code = 'UNIT'
CString strAccNum = "601", strKind = "KIND", strUnit = "UNIT";
pAnUnt->SeekByAccKindUnit (smGreaterOrEqual, (LPCSTR)strAccNum, (LPCSTR)strKind, (LPCSTR)strUnit, COleDateTime (0, 0, 0, 0, 0, 0).m_dt);
while (pAnUnt->GetDBStatus () == 0 && (CString)pAnUnt->pAccount == strAccNum && (CString)pAnUnt->pAnaKind == strKind && (CString)pAnUnt->pAnaAccount == strUnit)
{
// Process record data
pAnUnt->GetNext ();
}
|
|
 |
C# |
| |
// Seek all analytical unit entries for the general account with number = '601', the analytical kind with code = 'KIND' and the analytical unit with code = 'UNIT'
string strAccNum = "601", strKind = "KIND", strUnit = "UNIT";
oAnUnt.SeekByAccKindUnit (eSeekMode.smGreaterOrEqual, strAccNum, strKind, strUnit, new DateTime ());
while (oAnUnt.GetDBStatus () == 0 && oAnUnt.pAccount.ToString () == strAccNum && oAnUnt.pAnaKind.ToString () == strKind && oAnUnt.pAnaAccount.ToString () == strUnit)
{
// Process record data
oAnUnt.GetNext ();
}
|
|
 |
VBS |
| |
' Seek all analytical unit entries for the general account with number = '601', the analytical kind with code = 'KIND' and the analytical unit with code = 'UNIT'
Dim strAccNum, strKind, strUnit
Dim dtBookDate
strAccNum = "601"
strKind = "KIND"
strUnit = "UNIT"
Call oAnUnt.SeekByAccKindUnit(smGreaterOrEqual, strAccNum, strKind, strUnit, dtBookDate)
While oAnUnt.GetDBStatus() = 0 And oAnUnt.pAccount = strAccNum And oAnUnt.pAnaKind = strKind And oAnUnt.pAnaAccount = strUnit
' Process record data
Call oAnUnt.GetNext()
Wend
|
|
 |
VB.NET |
| |
' Seek all analytical unit entries for the general account with number = '601', the analytical kind with code = 'KIND' and the analytical unit with code = 'UNIT'
Dim strAccNum, strKind, strUnit As String
Dim dtBookDate As Date
strAccNum = "601"
strKind = "KIND"
strUnit = "UNIT"
oAnUnt.SeekByAccKindUnit(eSeekMode.smGreaterOrEqual, strAccNum, strKind, strUnit, dtBookDate)
While oAnUnt.GetDBStatus() = 0 And oAnUnt.pAccount = strAccNum And oAnUnt.pAnaKind = strKind And oAnUnt.pAnaAccount = strUnit
' Process record data
oAnUnt.GetNext()
End While
|
|