|
Seeks the first Analytical Unit entry for a document. |
|
|
VARIANT_BOOL SeekFirstAnaEntry ( enum eBookType eBookType, BSTR bsBook, LONG lDocNum, SHORT sEntryNum ) |
|
|
Key information | | This method uses key number 7 (See SwapKey). | | This is a unique key. |
| | Key segment information | Segment Name | Type | Order | Collation | pBookType | BYTE | Ascending | - | pBook | BSTR | Ascending | Case insensitive | pDocNum | LONG (unsigned) | Ascending | - | pEntEntryNum | SHORT (unsigned) | Ascending | - | pSysNum | LONG | Ascending | - |
| | Parameters | eBookType | [in] A value of the 'eBookType' enumeration. | bsBook | [in] The book code of the document of which you want to seek an analytical entry. | lDocNum | [in] The document date of the document of which you want to seek an analytical entry. | sEntryNum | [in] The entry number 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. | | Remarks |
| The value for sEntryNum is a 0-based, i.e. if you want to know the analytical entries of the 5th detail line of a document, you need to supply an entry number of 1. If you supply -1 for sEntryNum, then the file is positioned on the first analytical unit entry of the document. |
|
|
See Also |
|
|
|
Samples |
|
|
C++ |
|
// Check if the purchase document with book code = "APRCH" and document number = 12 has analytical unit entries
if (pAnUnt->SeekFirstAnaEntry (btPurch, "APRCH", 12, -1))
// Document has detail lines with analytical unit entries
|
|
|
C# |
|
// Check if the purchase document with book code = "APRCH" and document number = 12 has analytical unit entries
if (oAnUnt.SeekFirstAnaEntry (eBookType.btPurch, "APRCH", 12, -1))
// Document has detail lines with analytical unit entries
|
|
|
VBS |
|
' Check if the purchase document with book code = "APRCH" and document number = 12 has analytical unit entries
If oAnUnt.SeekFirstAnaEntry(btPurch, "APRCH", 12, -1) Then
' Document has detail lines with analytical unit entries
End If
|
|
|
VB.NET |
|
' Check if the purchase document with book code = "APRCH" and document number = 12 has analytical unit entries
If oAnUnt.SeekFirstAnaEntry(eBookType.btPurch, "APRCH", 12, -1) Then
' Document has detail lines with analytical unit entries
End If
|
|