| |
| Seeks a Sales Document by its document number. |
| |
 |
VARIANT_BOOL SeekByDocNum ( enum eSeekMode eSeekMode, SHORT sYear, BSTR bsBook, LONG lDocNum ) |
|
| |
| Parameters | | eSeekMode | | [in] A value of the 'eSeekMode' enumeration. | | sYear | | [in] The financial year in which the Sales Document you want to seek is created. | | bsBook | | [in] The book code of the Sales Document you want to seek. | | lDocNum | | [in] The document number of the Sales Document you want to seek. | | | | Return value |
| True if the record with the given properties was found, otherwise false. | | | | Remarks |
 | This method seeks the file using the key 'ASL_NUM' (key number 1). |
|
| |
| See Also |
 |
CreateSales |
 | The UNIT4 C-Logic Description File 'ASals.cld' in the Cld-directory in the system path of your Venice installation. |
|
|
| |
| Samples |
| |
 |
C++ |
| |
// Seek the document with book code = 'Book' and document number = '12' in the last financial year
if (pSales->SeekByDocNum (smEqual, pDossier->vLastYear, "Book", 12))
// Process record data
|
|
 |
C# |
| |
// Seek the document with book code = 'Book' and document number = '12' in the last financial year
if (oSales.SeekByDocNum (eSeekMode.smEqual, oDossier.vLastYear, "Book", 12))
// Process record data
|
|
 |
VBS |
| |
' Seek the document with book code = 'Book' and document number = '12' in the last financial year
If oSales.SeekByDocNum(smEqual, oDossier.vLastYear, "Book", 12) Then
' Process record data
End If
|
|
 |
VB.NET |
| |
' Seek the document with book code = 'Book' and document number = '12' in the last financial year
If oSales.SeekByDocNum(eSeekMode.smEqual, oDossier.vLastYear, "Book", 12) Then
' Process record data
End If
|
|