Venice
PstCd::SeekByCode
 
Seeks a Postal Code card by its postal code.
 
VARIANT_BOOL SeekByCode (
    enum eSeekMode eSeekMode,
    BSTR bsPostalCodeSearchText,
    BSTR bsCitySearchText
)
 
Key information
This method uses key number 1 (See SwapKey).
This key allows duplicates.
 
Key segment information
Segment NameTypeOrderCollation
pPCodeSearchBSTRAscendingCase insensitive
pCitySearchBSTRAscendingCase insensitive
 
Parameters
eSeekMode
[in] A value of the 'eSeekMode' enumeration.
bsPostalCodeSearchText
[in] The unformatted postal code (search text) of the postal code card you want to seek.
Use the method 'GetPostalCodeSearchText' to retrieve the unformatted postal code.
bsCitySearchText
[in] The unformatted city (search text) of the postal code card you want to seek.
Use the method 'GetCitySearchText' to retrieve the unformatted city.
 
Return value
True if the record with the given properties was found, otherwise false.
 
See Also
CreatePstCd
GetPostalCodeSearchText
GetCitySearchText
 
Samples
 
C++
 
// Seek the postal code card with postal code '8020' and city 'Ruddervoorde'
if (pPstCd->SeekByCode (smEqual, pPstCd->GetPostalCodeSearchText ("8020"), pPstCd->GetCitySearchText ("Ruddervoorde")))
{
    // Process record data
}

C#
 
// Seek the postal code card with postal code '8020' and city 'Ruddervoorde'
if (oPstCd.SeekByCode (eSeekMode.smEqual, oPstCd.GetPostalCodeSearchText ("8020"), oPstCd.GetCitySearchText ("Ruddervoorde")))
{
    // Process record data
}

VBS
 
' Seek the postal code card with postal code '8020' and city 'Ruddervoorde'
If oPstCd.SeekByCode(smEqual, oPstCd.GetPostalCodeSearchText("8020"), oPstCd.GetCitySearchText("Ruddervoorde")) Then
    ' Process record data
End If

VB.NET
 
' Seek the postal code card with postal code '8020' and city 'Ruddervoorde'
If oPstCd.SeekByCode(eSeekMode.smEqual, oPstCd.GetPostalCodeSearchText("8020"), oPstCd.GetCitySearchText("Ruddervoorde")) Then
    ' Process record data
End If