| |
| Seeks the first Analytical Centre 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 centre entry of the document. |
|
| |
| See Also |
|
|
|
| |
| Samples |
| |
 |
C++ |
| |
// Check if the purchase document with book code = "APRCH" and document number = 12 has analytical centre entries
if (pAnCnt->SeekFirstAnaEntry (btPurch, "APRCH", 12, -1))
// Document has detail lines with analytical centre entries
|
|
 |
C# |
| |
// Check if the purchase document with book code = "APRCH" and document number = 12 has analytical centre entries
if (oAnCnt.SeekFirstAnaEntry (eBookType.btPurch, "APRCH", 12, -1))
// Document has detail lines with analytical centre entries
|
|
 |
VBS |
| |
' Check if the purchase document with book code = "APRCH" and document number = 12 has analytical centre entries
If oAnCnt.SeekFirstAnaEntry(btPurch, "APRCH", 12, -1) Then
' Document has detail lines with analytical centre entries
End If
|
|
 |
VB.NET |
| |
' Check if the purchase document with book code = "APRCH" and document number = 12 has analytical centre entries
If oAnCnt.SeekFirstAnaEntry(eBookType.btPurch, "APRCH", 12, -1) Then
' Document has detail lines with analytical centre entries
End If
|
|