Venice
FBook::SeekByCode
 
Seeks a Financial Book by its code.
 
VARIANT_BOOL SeekByCode (
    enum eSeekMode eSeekMode,
    BSTR bsCode
)
 
Key information
This method uses key number 2 (See SwapKey).
This is a unique key.
 
Key segment information
Segment NameTypeOrderCollation
pBookBSTRAscendingCase insensitive
 
Parameters
eSeekMode
[in] A value of the 'eSeekMode' 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
 
Samples
 
C++
 
// Seek the financial book with code = 'CASH'
if (pFBook->SeekByCode (smEqual, "CASH"))
    // Process record data

C#
 
// Seek the financial book with code = 'CASH'
if (oFBook.SeekByCode (eSeekMode.smEqual, "CASH"))
    // Process record data

VBS
 
' Seek the financial book with code = 'CASH'
If oFBook.SeekByCode(smEqual, "CASH") Then
    ' Process record data
End If

VB.NET
 
' Seek the financial book with code = 'CASH'
If oFBook.SeekByCode(eSeekMode.smEqual, "CASH") Then
    ' Process record data
End If