Venice
POrder::SeekBySupNum
 
Seeks a Purchase Order by its supplier number.
 
VARIANT_BOOL SeekBySupNum (
    enum eSeekMode eSeekMode,
    LONG lSupNum,
    BSTR bsBook,
    LONG lDocNum
)
 
Key information
This method uses key number 2 (See SwapKey).
This is a unique key.
 
Key segment information
Segment NameTypeOrderCollation
pSupNumLONG (unsigned)Ascending-
pBookBSTRAscendingCase insensitive
pDocNumLONG (unsigned)Ascending-
 
Parameters
eSeekMode
[in] A value of the 'eSeekMode' enumeration.
lSupNum
[in] The supplier number of the Purchase Order you want to seek.
bsBook
[in] The book code of the Purchase Order you want to seek.
lDocNum
[in] The document number of the Purchase Order you want to seek.
 
Return value
True if the record with the given properties was found, otherwise false.
 
See Also
CreatePOrder
 
Samples
 
C++
 
// Seek the document for the supplier with number 125 and with book code = 'Book' and document number = 12
if (pPOrder->SeekBySupNum (smEqual, 125, "Book", 12))
    // Process record data

C#
 
// Seek the document for the supplier with number 125 and with book code = 'Book' and document number = 12
if (oPOrder.SeekBySupNum (eSeekMode.smEqual, 125, "Book", 12))
    // Process record data

VBS
 
' Seek the document for the supplier with number 125 and with book code = 'Book' and document number = 12
If oPOrder.SeekBySupNum(smEqual, 125, "Book", 12) Then
    ' Process record data
End If

VB.NET
 
' Seek the document for the supplier with number 125 and with book code = 'Book' and document number = 12
If oPOrder.SeekBySupNum(eSeekMode.smEqual, 125, "Book", 12) Then
    ' Process record data
End If