string ls_update = <DW Control Name>.Object.DataWindow.Table.UpdateTable
?Yes ?Use the UPDATE statement when the key is changed so that the key is updated in place
?No ?Use a DELETE and an INSERT statement when the key is changedCaution When there are multiple rows in a DataWindow object and the user switches keys or rows, updating in place may fail due to DBMS duplicate restrictions.
l_status = dw_1.GetItemStatus( long row, integer column, DWBuffer dwbuffer )
For rows in the primary and filter buffers, Update generates an INSERT statement for rows with NewModified! status. It generates an UPDATE statement for rows with DataModified! status and references the columns that have been affected.
For rows in the delete buffer, Update does not generate a DELETE statement for rows whose status was New! or NewModified! before being moved to the delete buffer.