Suppl::SeekBySupNum (Interface: Suppl)
 
Seeks a Supplier card by its supplier number.
 
VARIANT_BOOL SeekBySupNum (
    enum eSeekMode eSeekMode,
    LONG lSupNum,
    LONG lSubNum
)
 
Key information
This method uses key number 1 (See SwapKey).
This is a unique key.
 
Key segment information
Segment NameTypeOrderCollation
pNumberLONG (unsigned)Ascending-
pSubNumberLONG (unsigned)Ascending-
 
Parameters
eSeekMode
[in] A value of the 'eSeekMode' enumeration.
lSupNum
[in] The number of the Supplier you want to seek.
lSubNum
[in] The subnumber of the Supplier you want to seek.
 
Return value
True if the record with the given properties was found, otherwise false.
 
See Also
CreateSuppl
 
Samples
 
C++
 
// Seek the supplier with number 125 and subnumber 2
if (pSuppl->SeekBySupNum (smEqual, 125, 2))
    // Process record data

C#
 
// Seek the supplier with number 125 and subnumber 2
if (oSuppl.SeekBySupNum (eSeekMode.smEqual, 125, 2))
    // Process record data

VBS
 
' Seek the supplier with number 125 and subnumber 2
If oSuppl.SeekBySupNum(smEqual, 125, 2) Then
    ' Process record data
End If

VB.NET
 
' Seek the supplier with number 125 and subnumber 2
If oSuppl.SeekBySupNum(eSeekMode.smEqual, 125, 2) Then
    ' Process record data
End If