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

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

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

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