Venice
FBook::SeekByCurr
 
Seeks a Financial Book that can be used on reminders by its currency code.
 
VARIANT_BOOL SeekByCurr (
    enum eSeekMode eSeekMode,
    BSTR bsCurrency
)
 
Key information
This method uses key number 4 (See SwapKey).
This key allows duplicates.
This is a null key, only the records where pReminderUse is true are in the index.
 
Key segment information
Segment NameTypeOrderCollation
pCurrencyCodeBSTRAscendingCase insensitive
pReminderUseVARIANT_BOOLAscending-
 
Parameters
eSeekMode
[in] A value of the 'eSeekMode' enumeration.
bsCurrency
[in] The currency code of the Financial Book, that can be used on reminders, 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 that can be used on reminders, using the currency code 'USD'
pFBook->SeekByCurr (smEqual, "USD");
while (pFBook->GetDBStatus () == 0 && (CString)pFBook->pCurrencyCode == "USD")
{
    // Process record data
    
    pFBook->GetNext ();
}

C#
 
// Seek all financial books that can be used on reminders, using the currency code 'USD'
oFBook.SeekByCurr (eSeekMode.smEqual, "USD");
while (oFBook.GetDBStatus () == 0 && oFBook.pCurrencyCode.ToString () == "USD")
{
    // Process record data
    
    oFBook.GetNext ();
}

VBS
 
' Seek all financial books that can be used on reminders, using the currency code 'USD'
Call oFBook.SeekByCurr(smEqual, "USD")
While oFBook.GetDBStatus() = 0 And oFBook.pCurrencyCode = "USD"
    ' Process record data
    
    Call oFBook.GetNext()
Wend

VB.NET
 
' Seek all financial books that can be used on reminders, using the currency code 'USD'
oFBook.SeekByCurr(eSeekMode.smEqual, "USD")
While oFBook.GetDBStatus() = 0 And oFBook.pCurrencyCode = "USD"
    ' Process record data
    
    oFBook.GetNext()
End While