Venice
Suppl::SeekBySyncStatus
 
Seeks a Supplier card by synchronization status.
 
VARIANT_BOOL SeekBySyncStatus (
    enum eSeekMode eSeekMode,
    BYTE bySyncStatus
)
 
Key information
This method uses key number 10 (See SwapKey).
This key allows duplicates.
This is a null key, only the records where pSyncStatus is not 0 are in the index.
 
Key segment information
Segment NameTypeOrderCollation
pSyncStatusBYTEAscending-
 
Parameters
eSeekMode
[in] A value of the 'eSeekMode' enumeration.
bySyncStatus
[in] The synchronization status of the record. If the synchronization fields are activated, Venice sets the synchronization status of a new record to 1. If an existing record is modified and its synchronization reference is completed, then Venice will set the synchronization status to 2. When records are inserted or updated using ClSdk, the synchronization fields will never be changed, unless you explicitly call the method SetSyncValues.
 
Return value
True if the record with the given properties was found, otherwise false.
 
See Also
CreateSuppl
SetSyncValues
Update
 
Samples
 
C++
 
// Reset the synchronization status of all records
CString strSyncReference;
while (pSuppl->SeekBySyncStatus (smFirst, 0))
{
    strSyncReference = pSuppl->pSyncReference;
    pSuppl->SetSyncValues (0, (LPCSTR)strSyncReference, VARIANT_FALSE);
    pSuppl->Update (umErrorReport);
}

C#
 
// Reset the synchronization status of all records
while (oSuppl.SeekBySyncStatus (eSeekMode.smFirst, 0))
{
    oSuppl.SetSyncValues (0, oSuppl.pSyncReference.ToString (), false);
    oSuppl.Update (eUpdateMode.umErrorReport);
}

VBS
 
' Reset the synchronization status of all records
While oSuppl.SeekBySyncStatus(smFirst, 0)
    Call oSuppl.SetSyncValues(0, oSuppl.pSyncReference, False)
    Call oSuppl.Update(umErrorReport)
Wend

VB.NET
 
' Reset the synchronization status of all records
While oSuppl.SeekBySyncStatus(eSeekMode.smFirst, 0)
    oSuppl.SetSyncValues(0, oSuppl.pSyncReference, False)
    oSuppl.Update(eUpdateMode.umErrorReport)
End While