Venice
Custm::SeekByVatNum
 
Seeks a Customer card by its VAT number.
 
VARIANT_BOOL SeekByVatNum (
    enum eSeekMode eSeekMode,
    BSTR bsVatNum
)
 
Key information
This method uses key number 4 (See SwapKey).
This key allows duplicates.
 
Key segment information
Segment NameTypeOrderCollation
pVatNumBSTRAscendingCase insensitive
 
Parameters
eSeekMode
[in] A value of the 'eSeekMode' enumeration.
bsVatNum
[in] The VAT number of the Customer you want to seek.
 
Return value
True if the record with the given properties was found, otherwise false.
 
See Also
CreateCustm
 
Samples
 
C++
 
// Seek the customer with VAT number = 'BE 0427.604.308'
if (pCustm->SeekByVatNum (smEqual, "BE 0427.604.308"))
    // Process record data

C#
 
// Seek the customer with VAT number = 'BE 0427.604.308'
if (oCustm.SeekByVatNum (eSeekMode.smEqual, "BE 0427.604.308"))
    // Process record data

VBS
 
' Seek the customer with VAT number = 'BE 0427.604.308'
If oCustm.SeekByVatNum(smEqual, "BE 0427.604.308") Then
    ' Process record data
End If

VB.NET
 
' Seek the customer with VAT number = 'BE 0427.604.308'
If oCustm.SeekByVatNum(eSeekMode.smEqual, "BE 0427.604.308") Then
    ' Process record data
End If