Venice
PDeliv::SeekByBook
 
Seeks a Purchase Delivery by its book and document number.
 
VARIANT_BOOL SeekByBook (
    enum eSeekMode eSeekMode,
    BSTR bsBook,
    LONG lDocNum
)
 
Key information
This method uses key number 1 (See SwapKey).
This is a unique key.
 
Key segment information
Segment NameTypeOrderCollation
pBookBSTRAscendingCase insensitive
pDocNumLONG (unsigned)Ascending-
 
Parameters
eSeekMode
[in] A value of the 'eSeekMode' enumeration.
bsBook
[in] The book code of the Purchase Delivery you want to seek.
lDocNum
[in] The document number 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 with book code = 'Book' and document number = 12
if (pPDeliv->SeekByBook (smEqual, "Book", 12))
    // Process record data

C#
 
// Seek the document with book code = 'Book' and document number = 12
if (oPDeliv.SeekByBook (eSeekMode.smEqual, "Book", 12))
    // Process record data

VBS
 
' Seek the document with book code = 'Book' and document number = 12
If oPDeliv.SeekByBook(smEqual, "Book", 12) Then
    ' Process record data
End If

VB.NET
 
' Seek the document with book code = 'Book' and document number = 12
If oPDeliv.SeekByBook(eSeekMode.smEqual, "Book", 12) Then
    ' Process record data
End If