ComCd::SeekByCode (Interface: ComCd)
 
Seeks a Commodity Code card by its code.
 
VARIANT_BOOL SeekByCode (
    enum eSeekMode eSeekMode,
    BSTR bsCode
)
 
Key information
This is a unique key.
 
Key segment information
Segment NameTypeOrderCollation
pCodeBSTRAscendingCase sensitive
 
Parameters
eSeekMode
[in] A value of the 'eSeekMode' enumeration.
bsCode
[in] The unformatted code of the commodity code you want to seek.
 
Return value
True if the record with the given properties was found, otherwise false.
 
See Also
CreateComCd
 
Samples
 
C++
 
// Find the commodity code with code '0303.4690' (unformatted '03034690').
if (pComCd->SeekByCode (smEqual, "03034690"))
    // Process record data

C#
 
// Find the commodity code with code '0303.4690' (unformatted '03034690').
if (oComCd.SeekByCode (eSeekMode.smEqual, "03034690"))
    // Process record data

VBS
 
' Find the commodity code with code '0303.4690' (unformatted '03034690').
If oComCd.SeekByCode(smEqual, "03034690") Then
    ' Process record data
End If

VB.NET
 
' Find the commodity code with code '0303.4690' (unformatted '03034690').
If oComCd.SeekByCode(eSeekMode.smEqual, "03034690") Then
    ' Process record data
End If