Venice
Cntry::SeekByCode
 
Seeks a Country card by its code.
 
VARIANT_BOOL SeekByCode (
    enum eSeekMode eSeekMode,
    BSTR bsCountryCode
)
 
Key information
This method uses key number 1 (See SwapKey).
This is a unique key.
 
Key segment information
Segment NameTypeOrderCollation
pCountryCodeBSTRAscendingCase insensitive
 
Parameters
eSeekMode
[in] A value of the 'eSeekMode' enumeration.
bsCountryCode
[in] The country code of the country card you want to seek.
 
Return value
True if the record with the given properties was found, otherwise false.
 
See Also
CreateCntry
 
Samples
 
C++
 
// Seek the country with country code 'BE'
if (pCntry->SeekByCode (smEqual, "BE"))
{
    // Process record data
}

C#
 
// Seek the country with country code 'BE'
if (oCntry.SeekByCode (eSeekMode.smEqual, "BE"))
{
    // Process record data
}

VBS
 
' Seek the country with country code 'BE'
If oCntry.SeekByCode(smEqual, "BE") Then
    ' Process record data
End If

VB.NET
 
' Seek the country with country code 'BE'
If oCntry.SeekByCode(eSeekMode.smEqual, "BE") Then
    ' Process record data
End If