FBook::SeekByTyCode (Interface: FBook)
 
Seeks a Financial Book by its type and code.
 
VARIANT_BOOL SeekByTyCode (
    enum eSeekMode eSeekMode,
    enum eFBookType eFBookType,
    BSTR bsCode
)
 
Key information
This method uses key number 6 (See SwapKey).
This is a unique key.
 
Key segment information
Segment NameTypeOrderCollation
pFBookTypeBYTEAscending-
pBookBSTRAscendingCase insensitive
 
Parameters
eSeekMode
[in] A value of the 'eSeekMode' enumeration.
eFBookType
[in] A value of the 'eFBookType' 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++
 
// Check if there is a financial book of type 'Cash' with code = 'CASH'
if (pFBook->SeekByTyCode (smEqual, fbCash, "CASH"))
    // Process record data

C#
 
// Check if there is a financial book of type 'Cash' with code = 'CASH'
if (oFBook.SeekByTyCode (eSeekMode.smEqual, eFBookType.fbCash, "CASH"))
    // Process record data

VBS
 
' Check if there is a financial book of type 'Cash' with code = 'CASH'
If oFBook.SeekByTyCode(smEqual, fbCash, "CASH") Then
    ' Process record data
End If

VB.NET
 
' Check if there is a financial book of type 'Cash' with code = 'CASH'
If oFBook.SeekByTyCode(eSeekMode.smEqual, eFBookType.fbCash, "CASH") Then
    ' Process record data
End If