Suppl::SeekByPostal (Interface: Suppl)
 
Seeks a Supplier card by its postal code.
 
VARIANT_BOOL SeekByPostal (
    enum eSeekMode eSeekMode,
    BSTR bsPostal
)
 
Key information
This method uses key number 5 (See SwapKey).
This key allows duplicates.
 
Key segment information
Segment NameTypeOrderCollation
pPostalCodeBSTRAscendingCase 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
CreateSuppl
GetDBStatus
GetNext
 
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