PDeliv::SeekBySupRefer (Interface: PDeliv)
 
Seeks a Purchase Delivery by its supplier reference.
 
VARIANT_BOOL SeekBySupRefer (
    enum eSeekMode eSeekMode,
    LONG lSupNum,
    BSTR bsReferenceSup
)
 
Key information
This method uses key number 7 (See SwapKey).
This key allows duplicates.
 
Key segment information
Segment NameTypeOrderCollation
pSupNumLONG (unsigned)Ascending-
pReferenceSupBSTRAscendingCase insensitive
 
Parameters
eSeekMode
[in] A value of the 'eSeekMode' enumeration.
lSupNum
[in] The supplier number of the Purchase Delivery you want to seek.
bsReferenceSup
[in] The supplier reference of the Purchase Delivery you want to seek.
 
Return value
True if the record with the given properties was found, otherwise false.
 
See Also
CreatePDeliv
 
Samples
 
C++
 
// Seek the document for the supplier with number 125 and with supplier reference = 'Supplier reference'
if (pPDeliv->SeekBySupRefer (smEqual, 125, "Supplier reference"))
    // Process record data

C#
 
// Seek the document for the supplier with number 125 and with supplier reference = 'Supplier reference'
if (oPDeliv.SeekBySupRefer (eSeekMode.smEqual, 125, "Supplier reference"))
    // Process record data

VBS
 
' Seek the document for the supplier with number 125 and with supplier reference = 'Supplier reference'
If oPDeliv.SeekBySupRefer(smEqual, 125, "Supplier reference") Then
    ' Process record data
End If

VB.NET
 
' Seek the document for the supplier with number 125 and with supplier reference = 'Supplier reference'
If oPDeliv.SeekBySupRefer(eSeekMode.smEqual, 125, "Supplier reference") Then
    ' Process record data
End If