Venice
SOffer::SeekByCstNum
 
Seeks a Sales Offer by its customer number.
 
VARIANT_BOOL SeekByCstNum (
    enum eSeekMode eSeekMode,
    LONG lCstNum,
    BSTR bsBook,
    LONG lDocNum
)
 
Key information
This method uses key number 3 (See SwapKey).
This is a unique key.
 
Key segment information
Segment NameTypeOrderCollation
pCstNumLONG (unsigned)Ascending-
pBookBSTRAscendingCase insensitive
pDocNumLONG (unsigned)Ascending-
 
Parameters
eSeekMode
[in] A value of the 'eSeekMode' enumeration.
lCstNum
[in] The customer number of the Sales Offer you want to seek.
bsBook
[in] The book code of the Sales Offer you want to seek.
lDocNum
[in] The document number of the Sales Offer you want to seek.
 
Return value
True if the record with the given properties was found, otherwise false.
 
See Also
CreateSOffer
 
Samples
 
C++
 
// Seek the document for the Customer with number 25 and with book code = 'Book' and document number = 12
if (pSOffer->SeekByCstNum (smEqual, 25, "Book", 12))
    // Process record data

C#
 
// Seek the document for the Customer with number 25 and with book code = 'Book' and document number = 12
if (oSOffer.SeekByCstNum (eSeekMode.smEqual, 25, "Book", 12))
    // Process record data

VBS
 
' Seek the document for the Customer with number 25 and with book code = 'Book' and document number = 12
If oSOffer.SeekByCstNum(smEqual, 25, "Book", 12) Then
    ' Process record data
End If

VB.NET
 
' Seek the document for the Customer with number 25 and with book code = 'Book' and document number = 12
If oSOffer.SeekByCstNum(eSeekMode.smEqual, 25, "Book", 12) Then
    ' Process record data
End If