Spplm::SeekByCode
 
Seeks a Supplement card by its code.
 
VARIANT_BOOL SeekByCode (
    enum eSeekMode eSeekMode,
    BSTR bsCode,
    DATE dFromDate
)
 
Parameters
eSeekMode
[in] A value of the 'eSeekMode' enumeration.
bsCode
[in] The code of the Supplement card you want to seek.
dFromDate
[in] The from date of the Supplement card 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 'SPL_COD' (key number 1).
 
See Also
CreateSpplm
The UNIT4 C-Logic Description File 'Spplm.cld' in the Cld-directory in the system path of your Venice installation.
 
Samples
 
C++
 
// Seek the Supplement with code = 'FOST Plus 4361'
CString strCode = "FOST Plus 4361";
if (pSpplm->SeekByCode (smGreaterOrEqual, (LPCSTR)strCode, COleDateTime (0, 0, 0, 0, 0, 0).m_dt) && (CString)pSpplm->pCode == strCode)
    // Process record data

C#
 
// Seek the Supplement with name = 'FOST Plus 4361'
string strCode = "FOST Plus 4361";
if (oSpplm.SeekByCode (eSeekMode.smGreaterOrEqual, strCode, new DateTime ()) && oSpplm.pCode.ToString () == strCode)
    // Process record data

VBS
 
' Seek the Supplement with name = 'FOST Plus 4361'
Dim strCode
Dim dtFromDate
strCode = "FOST Plus 4361"
If oSpplm.SeekByCode(smGreaterOrEqual, strCode, dtFromDate) And oSpplm.pCode = strCode Then
    ' Process record data
End If

VB.NET
 
' Seek the Supplement with name = 'FOST Plus 4361'
Dim strCode As String
Dim dtFromDate As Date
strCode = "FOST Plus 4361"
If oSpplm.SeekByCode(eSeekMode.smGreaterOrEqual, strCode, dtFromDate) And oSpplm.pCode = strCode Then
    ' Process record data
End If