Venice
Sales::SeekByLawState
 
Seeks a Sales Document by its lawyer state.
 
VARIANT_BOOL SeekByLawState (
    enum eSeekMode eSeekMode,
    LONG lCstNum,
    BYTE byLawState
)
 
Key information
This method uses key number 10 (See SwapKey).
This key allows duplicates.
This is a null key, only the records where pLawyerState is not 0 are in the index.
 
Key segment information
Segment NameTypeOrderCollation
pCstNumLONG (unsigned)Ascending-
pLawyerStateBYTEAscending-
 
Parameters
eSeekMode
[in] A value of the 'eSeekMode' enumeration.
lCstNum
[in] The customer number of the Sales Document you want to seek.
byLawState
[in] The lawyer state 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 a lawyer state = 3
BYTE byLawState = 3;
pSales->SeekByLawState (smGreater, 0, byLawState);
while (pSales->GetDBStatus () == 0 && (BYTE)pSales->pLawyerState == byLawState)
{
    // Process record data
    
    pSales->GetNext ();    
}

C#
 
// Seek all Sales Documents with a lawyer state = 3
byte byLawState = 3;
oSales.SeekByLawState (eSeekMode.smGreater, 0, byLawState);
while (oSales.GetDBStatus () == 0 && (byte)oSales.pLawyerState == byLawState)
{
    // Process record data
    
    oSales.GetNext ();
}

VBS
 
' Seek all Sales Documents with a lawyer state = 3
Dim byLawState
byLawState = 3
Call oSales.SeekByLawState(smGreater, 0, byLawState)
While oSales.GetDBStatus() = 0 And oSales.pLawyerState = byLawState
    ' Process record data

    Call oSales.GetNext()
Wend

VB.NET
 
' Seek all Sales Documents with a lawyer state = 3
Dim byLawState As Byte
byLawState = 3
oSales.SeekByLawState(eSeekMode.smGreater, 0, byLawState)
While oSales.GetDBStatus() = 0 And oSales.pLawyerState = byLawState
    ' Process record data

    oSales.GetNext()
End While