Custm::SeekByCstNum (Interface: Custm)
 
Seeks a Customer card by its number.
 
VARIANT_BOOL SeekByCstNum (
    enum eSeekMode eSeekMode,
    LONG lCstNum,
    LONG lSubNum
)
 
Key information
This method uses key number 1 (See SwapKey).
This is a unique key.
 
Key segment information
Segment NameTypeOrderCollation
pNumberLONG (unsigned)Ascending-
pSubNumberLONG (unsigned)Ascending-
 
Parameters
eSeekMode
[in] A value of the 'eSeekMode' enumeration.
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++
 
// Seek the customer with number 25 and subnumber 2
if (pCustm->SeekByCstNum (smEqual, 25, 2))
    // Process record data

C#
 
// Seek the customer with number 25 and subnumber 2
if (oCustm.SeekByCstNum (eSeekMode.smEqual, 25, 2))
    // Process record data

VBS
 
' Seek the customer with number 25 and subnumber 2
If oCustm.SeekByCstNum(smEqual, 25, 2) Then
    ' Process record data
End If

VB.NET
 
' Seek the customer with number 25 and subnumber 2
If oCustm.SeekByCstNum(eSeekMode.smEqual, 25, 2) Then
    ' Process record data
End If