ComCd::SeekByCode
 
Seeks a Commodity Code card by its code.
 
VARIANT_BOOL SeekByCode (
    enum eSeekMode eSeekMode,
    BSTR bsCode
)
 
Parameters
eSeekMode
[in] A value of the 'eSeekMode' enumeration.
bsCode
[in] The code of the commodity code you want to seek.
 
Return value
True if the record with the given properties was found, otherwise false.
 
Remarks
This method seeks the file using the key 'COM_COD' (key number 0).
 
See Also
CreateComCd
The UNIT4 C-Logic Description File 'ComCd.cld' in the Cld-directory in the system path of your Venice installation.
 
Samples
 
C++
 
// Find the commodity code with code '0303.4690'.
if (pComCd->SeekByCode (smEqual, "0303.4690"))
    // Process record data

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

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

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