Venice
Sales::SeekByClassCode
 
Seeks a Sales Document by its classification code.
 
VARIANT_BOOL SeekByClassCode (
    enum eSeekMode eSeekMode,
    BSTR bsClassCode
)
 
Key information
This method uses key number 6 (See SwapKey).
This key allows duplicates.
 
Key segment information
Segment NameTypeOrderCollation
pClassBSTRAscendingCase insensitive
 
Parameters
eSeekMode
[in] A value of the 'eSeekMode' enumeration.
bsClassCode
[in] The classification code of the Sales Document you want to seek.
 
Return value
True if the record with the given properties was found, otherwise false.
 
See Also
CreateSales
GetDBStatus
GetNext
 
Samples
 
C++
 
// Seek all Sales Documents with classification code = 'CLASS'
pSales->SeekByClassCode (smEqual, "CLASS");
while (pSales->GetDBStatus () == 0 && (CString)pSales->pClass == "CLASS")
{
    // Process record data

    pSales->GetNext ();
}

C#
 
// Seek all Sales Documents with classification code = 'CLASS'
oSales.SeekByClassCode (eSeekMode.smEqual, "CLASS");
while (oSales.GetDBStatus () == 0 && oSales.pClass.ToString () == "CLASS")
{
    // Process record data
    
    oSales.GetNext ();
}

VBS
 
' Seek all Sales Documents with classification code = 'CLASS'
Call oSales.SeekByClassCode(smEqual, "CLASS")
While oSales.GetDBStatus() = 0 And oSales.pClass = "CLASS"
    ' Process record data

    Call oSales.GetNext()
Wend

VB.NET
 
' Seek all Sales Documents with classification code = 'CLASS'
oSales.SeekByClassCode(eSeekMode.smEqual, "CLASS")
While oSales.GetDBStatus() = 0 And oSales.pClass = "CLASS"
    ' Process record data

    oSales.GetNext()
End While