Venice
PerPay::SeekByCode
 
Seeks a Periodical Payment card by its code.
 
VARIANT_BOOL SeekByCode (
    enum eSeekMode eSeekMode,
    BSTR bsPerCode
)
 
Key information
This method uses key number 1 (See SwapKey).
This is a unique key.
 
Key segment information
Segment NameTypeOrderCollation
pPerCodeBSTRAscendingCase insensitive
 
Parameters
eSeekMode
[in] A value of the 'eSeekMode' enumeration.
bsPerCode
[in] The code of the Periodical Payment card you want to seek.
 
Return value
True if the record with the given properties was found, otherwise false.
 
See Also
CreatePerPay
 
Samples
 
C++
 
// Seek the periodical payment card with code 'ELECTR'
if (pPerPay->SeekByCode (smEqual, "ELECTR"))
    // Process record data

C#
 
// Seek the periodical payment card with code 'ELECTR'
if (oPerPay.SeekByCode (eSeekMode.smEqual, "ELECTR"))
    // Process record data

VBS
 
' Seek the periodical payment card with code 'ELECTR'
If oPerPay.SeekByCode(smEqual, "ELECTR") Then
    ' Process record data
End If

VB.NET
 
' Seek the periodical payment card with code 'ELECTR'
If oPerPay.SeekByCode(eSeekMode.smEqual, "ELECTR") Then
    ' Process record data
End If