PayWork::Update (Interface: PayWork)
 
Updates a Payment card of the work file.
 
void Update (
    enum eUpdateMode eUpdateMode
)
 
Parameters
eUpdateMode
[in] A value of the 'eUpdateMode' enumeration.
 
Remarks
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
CreatePayWork
SeekBySysNum
 
Samples
 
C++
 
// Update the last inserted record using the dialog
if (pPayWork->SeekBySysNum (smLast, 0))
    pPayWork->Update (umDialog);

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

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

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