|
Seeks a Sales Delivery by synchronization status. |
|
|
VARIANT_BOOL SeekBySyncStatus ( enum eSeekMode eSeekMode, BYTE bySyncStatus ) |
|
|
Key information | | This method uses key number 9 (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 | | | 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 |
|
|
|
Samples |
|
|
C++ |
|
// Reset the synchronization status of all records
CString strSyncReference;
while (pSDeliv->SeekBySyncStatus (smFirst, 0))
{
strSyncReference = pSDeliv->pSyncReference;
pSDeliv->SetSyncValues (0, (LPCSTR)strSyncReference, VARIANT_FALSE);
pSDeliv->Update (umErrorReport);
}
|
|
|
C# |
|
// Reset the synchronization status of all records
while (oSDeliv.SeekBySyncStatus (eSeekMode.smFirst, 0))
{
oSDeliv.SetSyncValues (0, oSDeliv.pSyncReference.ToString (), false);
oSDeliv.Update (eUpdateMode.umErrorReport);
}
|
|
|
VBS |
|
' Reset the synchronization status of all records
While oSDeliv.SeekBySyncStatus(smFirst, 0)
Call oSDeliv.SetSyncValues(0, oSDeliv.pSyncReference, False)
Call oSDeliv.Update(umErrorReport)
Wend
|
|
|
VB.NET |
|
' Reset the synchronization status of all records
While oSDeliv.SeekBySyncStatus(eSeekMode.smFirst, 0)
oSDeliv.SetSyncValues(0, oSDeliv.pSyncReference, False)
oSDeliv.Update(eUpdateMode.umErrorReport)
End While
|
|