Custm::SeekByGroup (Interface: Custm)
 
Seeks a Customer card by its group code.
 
VARIANT_BOOL SeekByGroup (
    enum eSeekMode eSeekMode,
    BSTR bsGroup,
    LONG lCstNum,
    LONG lSubNum
)
 
Key information
This method uses key number 6 (See SwapKey).
This is a unique key.
 
Key segment information
Segment NameTypeOrderCollation
pGroupcodeBSTRAscendingCase insensitive
pNumberLONG (unsigned)Ascending-
pSubNumberLONG (unsigned)Ascending-
 
Parameters
eSeekMode
[in] A value of the 'eSeekMode' enumeration.
bsGroup
[in] The group code of the Customer you want to seek.
lCstNum
[in] The number of the Customer you want to seek.
lSubNum
[in] The subnumber of the Customer you want to seek.
 
Return value
True if the record with the given properties was found, otherwise false.
 
See Also
CreateCustm
 
Samples
 
C++
 
// Check if the customer with number = 25 and subnumber = 2 is a member of the group 'GROUP'
if (pCustm->SeekByGroup (smEqual, "GROUP", 25, 2))
    // Customer is member of the group

C#
 
// Check if the customer with number = 25 and subnumber = 2 is a member of the group 'GROUP'
if (oCustm.SeekByGroup (eSeekMode.smEqual, "GROUP", 25, 2))
    // Customer is member of the group

VBS
 
' Check if the customer with number = 25 and subnumber = 2 is a member of the group 'GROUP'
If oCustm.SeekByGroup(smEqual, "GROUP", 25, 2) Then
    ' Customer is member of the group
End If

VB.NET
 
' Check if the customer with number = 25 and subnumber = 2 is a member of the group 'GROUP'
If oCustm.SeekByGroup(eSeekMode.smEqual, "GROUP", 25, 2) Then
    ' Customer is member of the group
End If