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

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

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

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