| |
| Seeks an unproduced Production Document by its book and document number. |
| |
 |
VARIANT_BOOL SeekByProdStatus ( enum eSeekMode eSeekMode, BSTR bsBook, LONG lDocNum ) |
|
| |
| Key information |  | This method uses key number 5 (See SwapKey). |  | This is a unique key. |  | This is a null key, only the records where pProdStatus is not 2 (=psProduced) are in the index. |
| | | | Key segment information | | Segment Name | Type | Order | Collation | | pBook | BSTR | Ascending | Case insensitive | | pDocNum | LONG (unsigned) | Ascending | - | | pProdStatus | BYTE | Ascending | - |
| | | | Parameters | | eSeekMode | | [in] A value of the 'eSeekMode' enumeration. | | bsBook | | [in] The book code of the Production Document you want to seek. | | lDocNum | | [in] The document number of the Production Document you want to seek. | | | | Return value |
| True if the record with the given properties was found, otherwise false. |
| |
| See Also |
|
|
|
| |
| Samples |
| |
 |
C++ |
| |
// Seek all the unproduced production documents
pProduct->SeekByProdStatus (smFirst, "", 0);
while (pProduct->GetDBStatus () == 0)
{
// Process record data
pProduct->GetNext ();
}
|
|
 |
C# |
| |
// Seek all the unproduced production documents
oProduct.SeekByProdStatus (eSeekMode.smFirst, "", 0);
while (oProduct.GetDBStatus () == 0)
{
// Process record data
oProduct.GetNext ();
}
|
|
 |
VBS |
| |
' Seek all the unproduced production documents
Call oProduct.SeekByProdStatus(smFirst, "", 0)
While oProduct.GetDBStatus() = 0
' Process record data
Call oProduct.GetNext()
Wend
|
|
 |
VB.NET |
| |
' Seek all the unproduced production documents
oProduct.SeekByProdStatus(eSeekMode.smFirst, "", 0)
While oProduct.GetDBStatus() = 0
' Process record data
oProduct.GetNext()
End While
|
|