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