GetUpdateStatus – PB Docs 150

GetUpdateStatus method (DataWindows)


Reports the row number and buffer of the row that is currently
being updated in the database. When called because of an error, GetUpdateStatus reports
the row that caused the error.

note.png Obsolete method

GetUpdateStatus is obsolete and will be
discontinued in a future release. You should replace all references
to GetUpdateStatus as soon as possible. The update
status is available as an argument in the DBError and SQLPreview events.


DataWindow type

Method applies to


DataWindow control, DataWindowChild object






A reference to a DataWindow control or
child DataWindow.


A variable that will store the number
of the row that will be updated or for which an update was attempted.


A value of the dwBuffer enumerated datatype
identifying the DataWindow buffer that contains the row being updated.
For a list of valid values, see DWBuffer.

Return Values

Returns 1 if it succeeds and –1 if an error occurs.
The number and buffer of the row currently being updated are stored
in row and dwbuffer.

If any argument value is null, the method returns null.


These statements in the script for the DBError event
for a DataWindow control obtain the text of the error message, display
a message box with the number of the row in which the error occurred
and the error message, and then make the row with the error the
current row.

Additional code in the IF statement considers
the case of the bad row being in the filter or delete buffer. If
the row is in the filter buffer, the script changes the filter so
that the user can edit the row in the primary buffer. If the row
is in the delete buffer, the message box displays a slightly different title:

See Also

Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Notify of
Inline Feedbacks
View all comments
Would love your thoughts, please comment.x