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

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

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

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