Venice
CtLnk::SeekByDefCtc
 
Seeks a Contact-firm link card by its default contact.
 
VARIANT_BOOL SeekByDefCtc (
    enum eSeekMode eSeekMode,
    enum eFirmType eFirmType,
    LONG lFrmNum,
    LONG lFrmSubNum
)
 
Key information
This method uses key number 3 (See SwapKey).
This is a unique key.
This is a null key, only the records where pUseDefault is true are in the index.
 
Key segment information
Segment NameTypeOrderCollation
pUseDefaultVARIANT_BOOLAscending-
pFrmTypeBYTEAscending-
pFrmNumberLONG (unsigned)Ascending-
pFrmSubNumberLONG (unsigned)Ascending-
 
Parameters
eSeekMode
[in] A value of the 'eSeekMode' enumeration.
eFirmType
[in] A value of the 'eFirmType' enumeration.
lFrmNum
[in] The firm number of the contact-firm link you want to seek.
lFrmSubNum
[in] The firm subnumber of the contact-firm link you want to seek.
 
Return value
True if the record with the given properties was found, otherwise false.
 
See Also
CreateCtLnk
 
Samples
 
C++
 
// Seek the default contact for the supplier with number 25/0
if (pCtLnk->SeekByDefCtc (smEqual, ftSupplier, 25, 0))
{
    // Process record data
}

C#
 
// Seek the default contact for the supplier with number 25/0
if (oCtLnk.SeekByDefCtc (eSeekMode.smEqual, eFirmType.ftSupplier, 25, 0))
{
    // Process record data
}

VBS
 
' Seek the default contact for the supplier with number 25/0
If oCtLnk.SeekByDefCtc(smEqual, ftSupplier, 25, 0) Then
    ' Process record data
End If

VB.NET
 
' Seek the default contact for the supplier with number 25/0
If oCtLnk.SeekByDefCtc(eSeekMode.smEqual, eFirmType.ftSupplier, 25, 0) Then
    ' Process record data
End If