FBook::SeekByCode
 
Seeks a Financial Book by its code.
 
VARIANT_BOOL SeekByCode (
    enum eSeekMode eSeekMode,
    BSTR bsCode
)
 
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.
 
Remarks
This method seeks the file using the key 'FBK_BOO' (key number 2).
 
See Also
CreateFBook
The UNIT4 C-Logic Description File 'FBook.cld' in the Cld-directory in the system path of your Venice installation.
 
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