|
Seeks a Supplier 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 supplier you want to seek. | | Return value |
True if the record with the given properties was found, otherwise false. |
|
See Also |
|
|
|
Samples |
|
|
C++ |
|
// Seek all suppliers with a postal code of '8200'
pSuppl->SeekByPostal (smEqual, "8200");
while (pSuppl->GetDBStatus () == 0 && (CString)pSuppl->pPostalCode == "8200")
{
// Process record data
pSuppl->GetNext ();
}
|
|
|
C# |
|
// Seek all suppliers with a postal code of '8200'
oSuppl.SeekByPostal (eSeekMode.smEqual, "8200");
while (oSuppl.GetDBStatus () == 0 && oSuppl.pPostalCode.ToString () == "8200")
{
// Process record data
oSuppl.GetNext ();
}
|
|
|
VBS |
|
' Seek all suppliers with a postal code of '8200'
Call oSuppl.SeekByPostal(smEqual, "8200")
While oSuppl.GetDBStatus() = 0 And oSuppl.pPostalCode = "8200"
' Process record data
Call oSuppl.GetNext()
Wend
|
|
|
VB.NET |
|
' Seek all suppliers with a postal code of '8200'
oSuppl.SeekByPostal(eSeekMode.smEqual, "8200")
While oSuppl.GetDBStatus() = 0 And oSuppl.pPostalCode = "8200"
' Process record data
oSuppl.GetNext()
End While
|
|