Venice
Sales::SeekByRemLevel
 
Seeks a Sales Document by its reminder level.
 
VARIANT_BOOL SeekByRemLevel (
    enum eSeekMode eSeekMode,
    BYTE byRemLevel,
    LONG lCstNum
)
 
Key information
This method uses key number 9 (See SwapKey).
This key allows duplicates.
This is a null key, only the records where pIsTicked is false are in the index.
 
Key segment information
Segment NameTypeOrderCollation
pRemLevelBYTEAscending-
pCstNumLONG (unsigned)Ascending-
pIsTickedVARIANT_BOOLAscending-
 
Parameters
eSeekMode
[in] A value of the 'eSeekMode' enumeration.
byRemLevel
[in] The reminder level of the Sales Document you want to seek.
lCstNum
[in] The customer number 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
GetExpired
GetDBStatus
GetNext
 
Samples
 
C++
 
// Seek all Sales Documents with a reminder level = 2
BYTE byRemLevel = 2;
pSales->SeekByRemLevel (smGreater, byRemLevel, 0);
while (pSales->GetDBStatus () == 0 && (BYTE)pSales->pRemLevel == byRemLevel)
{
    // Process record data
    
    pSales->GetNext ();    
}

C#
 
// Seek all Sales Documents with a reminder level = 2
byte byRemLevel = 2;
oSales.SeekByRemLevel (eSeekMode.smGreater, byRemLevel, 0);
while (oSales.GetDBStatus () == 0 && (byte)oSales.pRemLevel == byRemLevel)
{
    // Process record data
    
    oSales.GetNext ();
}

VBS
 
' Seek all Sales Documents with a reminder level = 2
Dim byRemLevel
byRemLevel = 2
Call oSales.SeekByRemLevel(smGreater, byRemLevel, 0)
While oSales.GetDBStatus() = 0 And oSales.pRemLevel = byRemLevel
    ' Process record data

    Call oSales.GetNext()
Wend

VB.NET
 
' Seek all Sales Documents with a reminder level = 2
Dim byRemLevel As Byte
byRemLevel = 2
oSales.SeekByRemLevel(eSeekMode.smGreater, byRemLevel, 0)
While oSales.GetDBStatus() = 0 And oSales.pRemLevel = byRemLevel
    ' Process record data

    oSales.GetNext()
End While