Venice
Artcl::SeekBySupRef
 
Seeks an Article card by supplier + reference.
 
VARIANT_BOOL SeekBySupRef (
    enum eSeekMode eSeekMode,
    LONG lSupNum,
    BSTR bsSupRef
)
 
Key information
This method uses key number 17 (See SwapKey).
This key allows duplicates.
 
Key segment information
Segment NameTypeOrderCollation
pSupNumberLONG (unsigned)Ascending-
pSupRefBSTRAscendingCase insensitive
 
Parameters
eSeekMode
[in] A value of the 'eSeekMode' enumeration.
lSupNum
[in] The supplier number of the Article you want to seek.
bsSupRef
[in] The supplier reference 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++
 
// Seek the article with supplier reference = 'Sup_Ref' purchased from supplier with number = 125
if (pArtcl->SeekBySupRef (smEqual, 125, "Sup_Ref"))
    // Process record data

C#
 
// Seek the article with supplier reference = 'Sup_Ref' purchased from supplier with number = 125
if (oArtcl.SeekBySupRef (eSeekMode.smEqual, 125, "Sup_Ref"))
    // Process record data

VBS
 
' Seek the article with supplier reference = 'Sup_Ref' purchased from supplier with number = 125
If oArtcl.SeekBySupRef(smEqual, 125, "Sup_Ref") Then
    ' Process record data
End If

VB.NET
 
' Seek the article with supplier reference = 'Sup_Ref' purchased from supplier with number = 125
If oArtcl.SeekBySupRef(eSeekMode.smEqual, 125, "Sup_Ref") Then
    ' Process record data
End If