Venice
Spplm::SeekByCode
 
Seeks a Supplement card by its code.
 
VARIANT_BOOL SeekByCode (
    enum eSeekMode eSeekMode,
    BSTR bsCode,
    DATE dFromDate
)
 
Key information
This method uses key number 1 (See SwapKey).
This is a unique key.
 
Key segment information
Segment NameTypeOrderCollation
pCodeBSTRAscendingCase insensitive
pFromDateDATE (date)Ascending-
 
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.
 
See Also
CreateSpplm
 
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