Entry::Update (Interface: Entry)
 
Updates an Entry record.
 
void Update (
    enum eUpdateMode eUpdateMode
)
 
Parameters
eUpdateMode
[in] A value of the 'eUpdateMode' enumeration.
 
Remarks
An entry cannot be updated using the dialog (eInsertMode = imDialog or eInsertMode = imDialogFromData), this mode is not supported in this version.
Updating a record destroys the object positioning that was previously established via a SeekBy-method and the GetNext/GetPrevious-methods. The results of calling GetNext or GetPrevious after an update are not guaranteed.
 
See Also
CreateEntry
SeekBySysNum
 
Samples
 
C++
 
// Update the remark of the last inserted entry to 'Updated via SDK'
if (pEntry->SeekBySysNum (smLast, 0))
{
    pEntry->SetFieldVal (entfRemark, "Updated via SDK");
    pEntry->Update (umFullReport);
}

C#
 
// Update the remark of the last inserted entry to 'Updated via SDK'
if (oEntry.SeekBySysNum (eSeekMode.smLast, 0))
{
    oEntry.SetFieldVal (eEntryFld.entfRemark, "Updated via SDK");
    oEntry.Update (eUpdateMode.umFullReport);
}

VBS
 
' Update the remark of the last inserted entry to 'Updated via SDK'
If oEntry.SeekBySysNum(smLast, 0) Then
    Call oEntry.SetFieldVal(oEntry.GetFieldID("Remark"), "Updated via SDK")
    Call oEntry.Update(umFullReport)
End If

VB.NET
 
' Update the remark of the last inserted entry to 'Updated via SDK'
If oEntry.SeekBySysNum(eSeekMode.smLast, 0) Then
    oEntry.SetFieldVal(eEntryFld.entfRemark, "Updated via SDK")
    oEntry.Update(eUpdateMode.umFullReport)
End If