POffer::Update (Interface: POffer)
 
Updates a Purchase Offer.
 
void Update (
    enum eUpdateMode eUpdateMode
)
 
Parameters
eUpdateMode
[in] A value of the 'eUpdateMode' enumeration.
 
Remarks
A document can always be modified using the dialog (eInsertMode = imDialog or eInsertMode = imDialogFromData). The use of other modes is possible, but the changes will be limited to the data of the header.
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
CreatePOffer
SeekBySysNum
 
Samples
 
C++
 
// Update the last inserted record using the dialog
if (pPOffer->SeekBySysNum (smLast, 0))
    pPOffer->Update (umDialog);

C#
 
// Update the last inserted record using the dialog
if (oPOffer.SeekBySysNum (eSeekMode.smLast, 0))
    oPOffer.Update (eUpdateMode.umDialog);

VBS
 
' Update the last inserted record using the dialog
If oPOffer.SeekBySysNum(smLast, 0) Then
    Call oPOffer.Update(umDialog)
End If

VB.NET
 
' Update the last inserted record using the dialog
If oPOffer.SeekBySysNum(eSeekMode.smLast, 0) Then
    oPOffer.Update(eUpdateMode.umDialog)
End If