Venice
PayWork::SeekByBankCode
 
Seeks a Payment card in the work file by its bank code.
 
VARIANT_BOOL SeekByBankCode (
    enum eSeekMode eSeekMode,
    BSTR bsBankCode,
    DATE dExpDate
)
 
Key information
This method uses key number 1 (See SwapKey).
This key allows duplicates.
 
Key segment information
Segment NameTypeOrderCollation
pBankCodeBSTRAscendingCase insensitive
pExpDateDATE (date)Ascending-
 
Parameters
eSeekMode
[in] A value of the 'eSeekMode' enumeration.
bsBankCode
[in] The bank code of the payment you want to seek.
dExpDate
[in] The expiration date of the payment you want to seek.
 
Return value
True if the record with the given properties was found, otherwise false.
 
See Also
CreatePayWork
 
Samples
 
C++
 
// Seek all payments in the working file with bank code = 'BANK' and an expiration date greater than or equal to 28/08/2024
COleDateTime odtExpDate;
odtExpDate.SetDate (2024, 8, 28);
pPayWork->SeekByBankCode (smGreaterOrEqual, "BANK", odtExpDate);
while (pPayWork->GetDBStatus () == 0 && (CString)pPayWork->pBankCode == "BANK" && (DATE)pPayWork->pExpDate >= odtExpDate)
{
    // Process record data
    
    pPayWork->GetNext ();
}

C#
 
// Seek all payments in the working file with bank code = 'BANK' and an expiration date greater than or equal to 28/08/2024
DateTime dtExpDate = new DateTime (2024, 8, 28);
oPayWork.SeekByBankCode (eSeekMode.smGreaterOrEqual, "BANK", dtExpDate);
while (oPayWork.GetDBStatus () == 0 && oPayWork.pBankCode.ToString () == "BANK" && (DateTime)oPayWork.pExpDate >= dtExpDate)
{
    // Process record data
    
    oPayWork.GetNext ();
}

VBS
 
' Seek all payments in the working file with bank code = 'BANK' and an expiration date greater than or equal to 28/08/2024
Dim dtExpDate
dtExpDate = #8/28/2024#
Call oPayWork.SeekByBankCode(smGreaterOrEqual, "BANK", dtExpDate)
While oPayWork.GetDBStatus() = 0 And oPayWork.pBankCode = "BANK" And oPayWork.pExpDate >= dtExpDate
    ' Process record data

    Call oPayWork.GetNext()
Wend

VB.NET
 
' Seek all payments in the working file with bank code = 'BANK' and an expiration date greater than or equal to 28/08/2024
Dim dtExpDate As Date
dtExpDate = #8/28/2024#
oPayWork.SeekByBankCode(eSeekMode.smGreaterOrEqual, "BANK", dtExpDate)
While oPayWork.GetDBStatus() = 0 And oPayWork.pBankCode = "BANK" And oPayWork.pExpDate >= dtExpDate
    ' Process record data

    oPayWork.GetNext()
End While