SInvce::SeekByCstRefer (Interface: SInvce)
 
Seeks a Sales Invoice by its customer reference.
 
VARIANT_BOOL SeekByCstRefer (
    enum eSeekMode eSeekMode,
    LONG lCstNum,
    BSTR bsReferenceCst
)
 
Key information
This method uses key number 13 (See SwapKey).
This key allows duplicates.
 
Key segment information
Segment NameTypeOrderCollation
pCstNumLONG (unsigned)Ascending-
pReferenceCstBSTRAscendingCase insensitive
 
Parameters
eSeekMode
[in] A value of the 'eSeekMode' enumeration.
lCstNum
[in] The customer number of the Sales Invoice you want to seek.
bsReferenceCst
[in] The customer reference of the Sales Invoice you want to seek.
 
Return value
True if the record with the given properties was found, otherwise false.
 
See Also
CreateSInvce
 
Samples
 
C++
 
// Seek the document for the Customer with number 25 and with customer reference = 'Customer reference'
if (pSInvce->SeekByCstRefer (smEqual, 25, "Customer reference"))
    // Process record data

C#
 
// Seek the document for the Customer with number 25 and with customer reference = 'Customer reference'
if (oSInvce.SeekByCstRefer (eSeekMode.smEqual, 25, "Customer reference"))
    // Process record data

VBS
 
' Seek the document for the Customer with number 25 and with customer reference = 'Customer reference'
If oSInvce.SeekByCstRefer(smEqual, 25, "Customer reference") Then
    ' Process record data
End If

VB.NET
 
' Seek the document for the Customer with number 25 and with customer reference = 'Customer reference'
If oSInvce.SeekByCstRefer(eSeekMode.smEqual, 25, "Customer reference") Then
    ' Process record data
End If