Venice
ArtSup::SeekBySupRef
 
Seeks an Article Supplier card by its supplier reference.
 
VARIANT_BOOL SeekBySupRef (
    enum eSeekMode eSeekMode,
    LONG lSupNum,
    BSTR bsSupRef
)
 
Key information
This method uses key number 3 (See SwapKey).
This key allows duplicates.
 
Key segment information
Segment NameTypeOrderCollation
pSupNumLONG (unsigned)Ascending-
pSupRefBSTRAscendingCase insensitive
 
Parameters
eSeekMode
[in] A value of the 'eSeekMode' enumeration.
lSupNum
[in] The supplier number of the article supplier card you want to seek.
bsSupRef
[in] The supplier reference of the article supplier card you want to seek.
 
Return value
True if the record with the given properties was found, otherwise false.
 
See Also
CreateArtSup
GetDBStatus
GetNext
 
Samples
 
C++
 
// Seek the article supplier card for the supplier with number 125 and reference 'SUP_REF'
if (pArtSup->SeekBySupRef (smEqual, 125, "SUP_REF"))
    // Process data

C#
 
// Seek the article supplier card for the supplier with number 125 and reference 'SUP_REF'
if (oArtSup.SeekBySupRef (eSeekMode.smEqual, 125, "SUP_REF"))
    // Process data

VBS
 
' Seek the article supplier card for the supplier with number 125 and reference 'SUP_REF'
If oArtSup.SeekBySupRef(smEqual, 125, "SUP_REF") Then
    ' Process record data
End If

VB.NET
 
' Seek the article supplier card for the supplier with number 125 and reference 'SUP_REF'
If oArtSup.SeekBySupRef(eSeekMode.smEqual, 125, "SUP_REF") Then
    ' Process record data
End If