|
Seeks a Customer card by its discount category. |
|
|
VARIANT_BOOL SeekByDiscountCat ( enum eSeekMode eSeekMode, BSTR bsDiscountCat, LONG lCstNum, LONG lSubNum ) |
|
|
Key information | | This method uses key number 9 (See SwapKey). | | This is a unique key. |
| | Key segment information | | | Parameters | eSeekMode | [in] A value of the 'eSeekMode' enumeration. | bsDiscountCat | [in] The discount 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 |
|
|
|
Samples |
|
|
C++ |
|
// Check if the customer with number = 25 and subnumber = 2 can get the discounts defined in the discount category 'DISC1'
if (pCustm->SeekByDiscountCat (smEqual, "DISC1", 25, 2))
// Use 'DISC1'-discounts for this customer
|
|
|
C# |
|
// Check if the customer with number = 25 and subnumber = 2 can get the discounts defined in the discount category 'DISC1'
if (oCustm.SeekByDiscountCat (eSeekMode.smEqual, "DISC1", 25, 2))
// Use 'DISC1'-discounts for this customer
|
|
|
VBS |
|
' Check if the customer with number = 25 and subnumber = 2 can get the discounts defined in the discount category 'DISC1'
If oCustm.SeekByDiscountCat(smEqual, "DISC1", 25, 2) Then
' Use 'DISC1'-discounts for this customer
End If
|
|
|
VB.NET |
|
' Check if the customer with number = 25 and subnumber = 2 can get the discounts defined in the discount category 'DISC1'
If oCustm.SeekByDiscountCat(eSeekMode.smEqual, "DISC1", 25, 2) Then
' Use 'DISC1'-discounts for this customer
End If
|
|