|
Seeks a Customer card by its postal code. |
|
|
VARIANT_BOOL SeekByPostal ( enum eSeekMode eSeekMode, BSTR bsPostal ) |
|
|
Key information | | | Key segment information | Segment Name | Type | Order | Collation | pPostalCode | BSTR | Ascending | Case insensitive |
| | Parameters | eSeekMode | [in] A value of the 'eSeekMode' enumeration. | bsPostal | [in] The postal code of the Customer you want to seek. | | Return value |
True if the record with the given properties was found, otherwise false. |
|
See Also |
|
|
|
Samples |
|
|
C++ |
|
// Seek all customers with a postal code of '8200'
pCustm->SeekByPostal (smEqual, "8200");
while (pCustm->GetDBStatus () == 0 && (CString)pCustm->pPostalCode == "8200")
{
// Process record data
pCustm->GetNext ();
}
|
|
|
C# |
|
// Seek all customers with a postal code of '8200'
oCustm.SeekByPostal (eSeekMode.smEqual, "8200");
while (oCustm.GetDBStatus () == 0 && oCustm.pPostalCode.ToString () == "8200")
{
// Process record data
oCustm.GetNext ();
}
|
|
|
VBS |
|
' Seek all customers with a postal code of '8200'
Call oCustm.SeekByPostal(smEqual, "8200")
While oCustm.GetDBStatus() = 0 And oCustm.pPostalCode = "8200"
' Process record data
Call oCustm.GetNext()
Wend
|
|
|
VB.NET |
|
' Seek all customers with a postal code of '8200'
oCustm.SeekByPostal(eSeekMode.smEqual, "8200")
While oCustm.GetDBStatus() = 0 And oCustm.pPostalCode = "8200"
' Process record data
oCustm.GetNext()
End While
|
|