|
Seeks a Purchase Offer by its print status. |
|
|
VARIANT_BOOL SeekByPrnStatus ( 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 pToPrint is true are in the index. |
| | Key segment information | Segment Name | Type | Order | Collation | pBook | BSTR | Ascending | Case insensitive | pDocNum | LONG (unsigned) | Ascending | - | pToPrint | VARIANT_BOOL | Ascending | - |
| | Parameters | eSeekMode | [in] A value of the 'eSeekMode' enumeration. | bsBook | [in] The book code of the Purchase Offer you want to seek. | lDocNum | [in] The document number of the Purchase Offer you want to seek. | | Return value |
True if the record with the given properties was found, otherwise false. |
|
See Also |
|
|
|
Samples |
|
|
C++ |
|
// Process all records that still need to be printed
pPOffer->SeekByPrnStatus (smFirst, "", 0);
while (pPOffer->GetDBStatus () == 0)
{
// Process record data
pPOffer->GetNext ();
}
// Check if the document with book code = 'Book' and document number = 12 still needs to be printed
if (pPOffer->SeekByPrnStatus (smEqual, "Book", 12))
// Record needs to be printed
|
|
|
C# |
|
// Process all records that still need to be printed
oPOffer.SeekByPrnStatus (eSeekMode.smFirst, "", 0);
while (oPOffer.GetDBStatus () == 0)
{
// Process record data
oPOffer.GetNext ();
}
// Check if the document with book code = 'Book' and document number = 12 still needs to be printed
if (oPOffer.SeekByPrnStatus (eSeekMode.smEqual, "Book", 12))
// Record needs to be printed
|
|
|
VBS |
|
' Process all records that still need to be printed
Call oPOffer.SeekByPrnStatus(smFirst, "", 0)
While oPOffer.GetDBStatus() = 0
' Process record data
Call oPOffer.GetNext()
Wend
' Check if the document with book code = 'Book' and document number = 12 still needs to be printed
If oPOffer.SeekByPrnStatus(smEqual, "Book", 12) Then
' Record needs to be printed
End If
|
|
|
VB.NET |
|
' Process all records that still need to be printed
oPOffer.SeekByPrnStatus(eSeekMode.smFirst, "", 0)
While oPOffer.GetDBStatus() = 0
' Process record data
oPOffer.GetNext()
End While
' Check if the document with book code = 'Book' and document number = 12 still needs to be printed
If oPOffer.SeekByPrnStatus(eSeekMode.smEqual, "Book", 12) Then
' Record needs to be printed
End If
|
|