| |
| Seeks a Payment card in the work file by its bank code. |
| |
 |
VARIANT_BOOL SeekByBankCode ( enum eSeekMode eSeekMode, BSTR bsBankCode, DATE dExpDate ) |
|
| |
| Key information | | | | | Key segment information | | Segment Name | Type | Order | Collation | | pBankCode | BSTR | Ascending | Case insensitive | | pExpDate | DATE (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 |
|
|
|
| |
| Samples |
| |
 |
C++ |
| |
// Seek all payments in the working file with bank code = 'BANK' and an expiration date greater than or equal to 28/08/2025
COleDateTime odtExpDate;
odtExpDate.SetDate (2025, 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/2025
DateTime dtExpDate = new DateTime (2025, 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/2025
Dim dtExpDate
dtExpDate = #8/28/2025#
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/2025
Dim dtExpDate As Date
dtExpDate = #8/28/2025#
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
|
|