Venice
Book::SeekByCode
 
Seeks a Book card by its code.
 
VARIANT_BOOL SeekByCode (
    enum eSeekMode eSeekMode,
    enum eBookType eBookType,
    BSTR bsCode
)
 
Key information
This method uses key number 1 (See SwapKey).
This is a unique key.
 
Key segment information
Segment NameTypeOrderCollation
pBookTypeBYTEAscending-
pBookBSTRAscendingCase insensitive
 
Parameters
eSeekMode
[in] A value of the 'eSeekMode' enumeration.
eBookType
[in] A value of the 'eBookType' enumeration.
bsCode
[in] The code of the Book you want to seek.
 
Return value
True if the record with the given properties was found, otherwise false.
 
See Also
CreateBook
 
Samples
 
C++
 
// Seek the purchase book with code = 'APRCH'
if (pBook->SeekByCode (smEqual, btPurch, "APRCH"))
    // Process record data

C#
 
// Seek the purchase book with code = 'APRCH'
if (oBook.SeekByCode (eSeekMode.smEqual, eBookType.btPurch, "APRCH"))
    // Process record data

VBS
 
' Seek the purchase book with code = 'APRCH'
If oBook.SeekByCode(smEqual, btPurch, "APRCH") Then
    ' Process record data
End If

VB.NET
 
' Seek the purchase book with code = 'APRCH'
If oBook.SeekByCode(eSeekMode.smEqual, eBookType.btPurch, "APRCH") Then
    ' Process record data
End If