Custm::SeekByChargeCat (Interface: Custm)
 
Seeks a Customer card by its charge category.
 
VARIANT_BOOL SeekByChargeCat (
    enum eSeekMode eSeekMode,
    BSTR bsChargeCat,
    LONG lCstNum,
    LONG lSubNum
)
 
Key information
This method uses key number 8 (See SwapKey).
This is a unique key.
 
Key segment information
Segment NameTypeOrderCollation
pSurchargeCategoryBSTRAscendingCase insensitive
pNumberLONG (unsigned)Ascending-
pSubNumberLONG (unsigned)Ascending-
 
Parameters
eSeekMode
[in] A value of the 'eSeekMode' enumeration.
bsChargeCat
[in] The charge 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 needs to pay the charges defined in the surcharge category 'EXTRA'
if (pCustm->SeekByChargeCat (smEqual, "EXTRA", 25, 2))
    // Use 'EXTRA'-surcharges for this customer

C#
 
// Check if the customer with number = 25 and subnumber = 2 needs to pay the charges defined in the surcharge category 'EXTRA'
if (oCustm.SeekByChargeCat (eSeekMode.smEqual, "EXTRA", 25, 2))
    // Use 'EXTRA'-surcharges for this customer

VBS
 
' Check if the customer with number = 25 and subnumber = 2 needs to pay the charges defined in the surcharge category 'EXTRA'
If oCustm.SeekByChargeCat(smEqual, "EXTRA", 25, 2) Then
    ' Use 'EXTRA'-surcharges for this customer
End If

VB.NET
 
' Check if the customer with number = 25 and subnumber = 2 needs to pay the charges defined in the surcharge category 'EXTRA'
If oCustm.SeekByChargeCat(eSeekMode.smEqual, "EXTRA", 25, 2) Then
    ' Use 'EXTRA'-surcharges for this customer
End If