Custm::SeekByPriceCat (Interface: Custm)
 
Seeks a Customer card by its price category.
 
VARIANT_BOOL SeekByPriceCat (
    enum eSeekMode eSeekMode,
    BSTR bsPriceCat,
    LONG lCstNum,
    LONG lSubNum
)
 
Key information
This method uses key number 7 (See SwapKey).
This is a unique key.
 
Key segment information
Segment NameTypeOrderCollation
pPriceCategoryBSTRAscendingCase insensitive
pNumberLONG (unsigned)Ascending-
pSubNumberLONG (unsigned)Ascending-
 
Parameters
eSeekMode
[in] A value of the 'eSeekMode' enumeration.
bsPriceCat
[in] The price category of the Customer you want to seek.
lCstNum
[in] The number of the Customer you want to seek.
lSubNum
[in] The subnumber of the Customer you want to seek.
 
Return value
True if the record with the given properties was found, otherwise false.
 
See Also
CreateCustm
 
Samples
 
C++
 
// Check if the customer with number = 25 and subnumber = 2 can get the prices defined in the price category 'CHEAP'
if (pCustm->SeekByPriceCat (smEqual, "CHEAP", 25, 2))
    // Use 'CHEAP'-prices for this customer

C#
 
// Check if the customer with number = 25 and subnumber = 2 can get the prices defined in the price category 'CHEAP'
if (oCustm.SeekByPriceCat (eSeekMode.smEqual, "CHEAP", 25, 2))
    // Use 'CHEAP'-prices for this customer

VBS
 
' Check if the customer with number = 25 and subnumber = 2 can get the prices defined in the price category 'CHEAP'
If oCustm.SeekByPriceCat(smEqual, "CHEAP", 25, 2) Then
    ' Use 'CHEAP'-prices for this customer
End If

VB.NET
 
' Check if the customer with number = 25 and subnumber = 2 can get the prices defined in the price category 'CHEAP'
If oCustm.SeekByPriceCat(eSeekMode.smEqual, "CHEAP", 25, 2) Then
    ' Use 'CHEAP'-prices for this customer
End If