FBook::SeekByTyName (Interface: FBook)
 
Seeks a Financial Book by its type and name.
 
VARIANT_BOOL SeekByTyName (
    enum eSeekMode eSeekMode,
    enum eFBookType eFBookType,
    BSTR bsName
)
 
Key information
This method uses key number 5 (See SwapKey).
This key allows duplicates.
 
Key segment information
Segment NameTypeOrderCollation
pFBookTypeBYTEAscending-
pNameBSTRAscendingCase insensitive
 
Parameters
eSeekMode
[in] A value of the 'eSeekMode' enumeration.
eFBookType
[in] A value of the 'eFBookType' enumeration.
bsName
[in] The name 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 name = 'Cash payments'
if (pFBook->SeekByTyName (smEqual, fbCash, "Cash payments"))
    // Process record data

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

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

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