Venice
Artcl::SeekBySurchargeCat
 
Seeks an Article card by its surcharge category.
 
VARIANT_BOOL SeekBySurchargeCat (
    enum eSeekMode eSeekMode,
    BSTR bsSurchargeCategory,
    BSTR bsNumber
)
 
Key information
This method uses key number 13 (See SwapKey).
This is a unique key.
 
Key segment information
Segment NameTypeOrderCollation
pSurchargeCategoryBSTRAscendingCase insensitive
pNumberBSTRAscendingHierarchy
 
Parameters
eSeekMode
[in] A value of the 'eSeekMode' enumeration.
bsSurchargeCategory
[in] The surcharge 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' needs the charges defined in the surcharge category 'EXTRA'
if (pArtcl->SeekBySurchargeCat (smEqual, "EXTRA", "Art_001"))
    // Use 'EXTRA'-surcharges for this article

C#
 
// Check if the article with number = 'Art_001' needs the charges defined in the surcharge category 'EXTRA'
if (oArtcl.SeekBySurchargeCat (eSeekMode.smEqual, "EXTRA", "Art_001"))
    // Use 'EXTRA'-surcharges for this article

VBS
 
' Check if the article with number = 'Art_001' needs the charges defined in the surcharge category 'EXTRA'
If oArtcl.SeekBySurchargeCat(smEqual, "EXTRA", "Art_001") Then
    ' Use 'EXTRA'-surcharges for this article
End If

VB.NET
 
' Check if the article with number = 'Art_001' needs the charges defined in the surcharge category 'EXTRA'
If oArtcl.SeekBySurchargeCat(eSeekMode.smEqual, "EXTRA", "Art_001") Then
    ' Use 'EXTRA'-surcharges for this article
End If