Lookup::SeekByType
 
Seeks a lookup card by its type and code.
 
VARIANT_BOOL SeekByType (
    enum eSeekMode eSeekMode,
    enum eLookupType eLookupType,
    BSTR bsCode
)
 
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.
 
Remarks
This method seeks the file using the key 'LKP_TYP' (key number 1).
 
See Also
CreateLookup
The UNIT4 C-Logic Description File 'Lookup.cld' in the Cld-directory in the system path of your Venice installation.
 
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