|
Seeks a Postal Code card by its postal code. |
|
|
VARIANT_BOOL SeekByCode ( enum eSeekMode eSeekMode, BSTR bsPostalCodeSearchText, BSTR bsCitySearchText ) |
|
|
Key information | | | Key segment information | Segment Name | Type | Order | Collation | pPCodeSearch | BSTR | Ascending | Case insensitive | pCitySearch | BSTR | Ascending | Case 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.
| bsCitySearchText | [in] The unformatted city (search text) of the postal code card you want to seek.
| | Return value |
True if the record with the given properties was found, otherwise false. |
|
See Also |
|
|
|
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
|
|