Lookup::SeekByType (Interface: Lookup)
 
Seeks a lookup card by its type and code.
 
VARIANT_BOOL SeekByType (
    enum eSeekMode eSeekMode,
    enum eLookupType eLookupType,
    BSTR bsCode
)
 
Key information
This method uses key number 1 (See SwapKey).
This is a unique key.
 
Key segment information
Segment NameTypeOrderCollation
pTypeNumSHORT (unsigned)Ascending-
pTextBSTRAscendingCase insensitive
 
Parameters
eSeekMode
[in] A value of the 'eSeekMode' enumeration.
eLookupType
[in] A value of the 'eLookupType' enumeration.
bsCode
[in] The lookup code you want to seek.
 
Return value
True if the record with the given properties was found, otherwise false.
 
See Also
CreateLookup
 
Samples
 
C++
 
// Seek the Lookup record for the Sales Invoice shipment method with code = 'Download'
if (pLookup->SeekByType (smEqual, ltInvShipmentMethod, "Download"))
    // Process data

C#
 
// Seek the Lookup record for the Sales Invoice shipment method with code = 'Download'
if (oLookup.SeekByType (eSeekMode.smEqual, eLookupType.ltInvShipmentMethod, "Download"))
    // Process data

VBS
 
' Seek the Lookup record for the Sales Invoice shipment method with code = 'Download'
If oLookup.SeekByType(smEqual, ltInvShipmentMethod, "Download") Then
    ' Process data
End If

VB.NET
 
' Seek the Lookup record for the Sales Invoice shipment method with code = 'Download'
If oLookup.SeekByType(eSeekMode.smEqual, eLookupType.ltInvShipmentMethod, "Download") Then
    ' Process data
End If