Venice
Artcl::SeekBySyncStatus
 
Seeks an Article card by synchronization status.
 
VARIANT_BOOL SeekBySyncStatus (
    enum eSeekMode eSeekMode,
    BYTE bySyncStatus
)
 
Key information
This method uses key number 20 (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
CreateArtcl
SetSyncValues
Update
 
Samples
 
C++
 
// Reset the synchronization status of all records
CString strSyncReference;
while (pArtcl->SeekBySyncStatus (smFirst, 0))
{
    strSyncReference = pArtcl->pSyncReference;
    pArtcl->SetSyncValues (0, (LPCSTR)strSyncReference, VARIANT_FALSE);
    pArtcl->Update (umErrorReport);
}

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

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

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