FBook::SeekByUse (Interface: FBook)
 
Seeks a Financial Book by its use for electronic payments.
 
VARIANT_BOOL SeekByUse (
    enum eSeekMode eSeekMode,
    enum eBankUse eBankUse,
    BSTR bsCode
)
 
Key information
This method uses key number 7 (See SwapKey).
This is a unique key.
This is a null key, only the records where pBankUse is not 0 are in the index.
 
Key segment information
Segment NameTypeOrderCollation
pBankUseBYTEDescending-
pBookBSTRAscendingCase insensitive
 
Parameters
eSeekMode
[in] A value of the 'eSeekMode' enumeration.
eBankUse
[in] A value of the 'eBankUse' enumeration.
bsCode
[in] The code of the Financial Book you want to seek.
 
Return value
True if the record with the given properties was found, otherwise false.
 
See Also
CreateFBook
GetDBStatus
GetNext
 
Samples
 
C++
 
// Seek all financial books with a high usage for electronic payments
pFBook->SeekByUse (smGreater, buHigh, "");
while (pFBook->GetDBStatus () == 0 && (BYTE)pFBook->pBankUse == buHigh)
{
    // Process record data
    
    pFBook->GetNext ();
}

C#
 
// Seek all financial books with a high usage for electronic payments
oFBook.SeekByUse (eSeekMode.smGreater, eBankUse.buHigh, "");
while (oFBook.GetDBStatus () == 0 && (eBankUse)((byte)oFBook.pBankUse) == eBankUse.buHigh)
{
    // Process record data
    
    oFBook.GetNext ();
}

VBS
 
' Seek all financial books with a high usage for electronic payments
Call oFBook.SeekByUse(smGreater, buHigh, "")
While oFBook.GetDBStatus() = 0 And oFBook.pBankUse = buHigh
    ' Process record data
    
    Call oFBook.GetNext()
Wend

VB.NET
 
' Seek all financial books with a high usage for electronic payments
oFBook.SeekByUse(eSeekMode.smGreater, eBankUse.buHigh, "")
While oFBook.GetDBStatus() = 0 And oFBook.pBankUse = eBankUse.buHigh
    ' Process record data
    
    oFBook.GetNext()
End While