Venice
PayWork::SeekByAccNum
 
Seeks a Payment card in the work file by its account number.
 
VARIANT_BOOL SeekByAccNum (
    enum eSeekMode eSeekMode,
    BSTR bsAccount,
    DATE dExpDate
)
 
Key information
This method uses key number 2 (See SwapKey).
This key allows duplicates.
 
Key segment information
Segment NameTypeOrderCollation
pAccountBSTRAscendingCase sensitive
pExpDateDATE (date)Ascending-
 
Parameters
eSeekMode
[in] A value of the 'eSeekMode' enumeration.
bsAccount
[in] The account number 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 for the account with number '440000000001' and an expiration date greater than or equal to 28/08/2024
COleDateTime odtExpDate;
odtExpDate.SetDate (2024, 8, 28);
pPayWork->SeekByAccNum (smGreaterOrEqual, "440000000001", odtExpDate);
while (pPayWork->GetDBStatus () == 0 && (CString)pPayWork->pAccount == "440000000001" && (DATE)pPayWork->pExpDate >= odtExpDate)
{
    // Process record data
    
    pPayWork->GetNext ();
}

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

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

    Call oPayWork.GetNext()
Wend

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

    oPayWork.GetNext()
End While