Venice
Artcl::SeekByDiscountCat
 
Seeks an Article card by its discount category.
 
VARIANT_BOOL SeekByDiscountCat (
    enum eSeekMode eSeekMode,
    BSTR bsDiscountCategory,
    BSTR bsNumber
)
 
Key information
This method uses key number 14 (See SwapKey).
This is a unique key.
 
Key segment information
Segment NameTypeOrderCollation
pDiscountCategoryBSTRAscendingCase insensitive
pNumberBSTRAscendingHierarchy
 
Parameters
eSeekMode
[in] A value of the 'eSeekMode' enumeration.
bsDiscountCategory
[in] The discount category of the Article you want to seek.
bsNumber
[in] The number of the Article you want to seek.
 
Return value
True if the record with the given properties was found, otherwise false.
 
See Also
CreateArtcl
 
Samples
 
C++
 
// Check if the article with number = 'Art_001' can use the discounts defined in the discount category 'DISC1'
if (pArtcl->SeekByDiscountCat (smEqual, "DISC1", "Art_001"))
    // Use 'DISC1'-discounts for this article

C#
 
// Check if the article with number = 'Art_001' can use the discounts defined in the discount category 'DISC1'
if (oArtcl.SeekByDiscountCat (eSeekMode.smEqual, "DISC1", "Art_001"))
    // Use 'DISC1'-discounts for this article

VBS
 
' Check if the article with number = 'Art_001' can use the discounts defined in the discount category 'DISC1'
If oArtcl.SeekByDiscountCat(smEqual, "DISC1", "Art_001") Then
    ' Use 'DISC1'-discounts for this article
End If

VB.NET
 
' Check if the article with number = 'Art_001' can use the discounts defined in the discount category 'DISC1'
If oArtcl.SeekByDiscountCat(eSeekMode.smEqual, "DISC1", "Art_001") Then
    ' Use 'DISC1'-discounts for this article
End If