Venice
Product::SeekByProdStatus
 
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 NameTypeOrderCollation
pBookBSTRAscendingCase insensitive
pDocNumLONG (unsigned)Ascending-
pProdStatusBYTEAscending-
 
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
CreateProduct
GetDBStatus
GetNext
 
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