Try OpenEdge Now
skip to main content
ABL Reference
Handle Attributes and Methods Reference : MARK-NEW( ) method
 

MARK-NEW( ) method

For a table with only new data, creates a blank before-table record for each buffer record, with a ROW-STATE of ROW-CREATED.
Return type: LOGICAL
Applies to: Buffer object handle
If a ProDataSet temp-table is known to contain only new data, MARK-NEW( ) can be used to create a before-table record for those buffer records that do not have one. ROW-STATE is set to ROW-CREATED. Using this method is easier than using MARK-ROW-STATE(ROW-CREATED), because you do not have to manually loop through all the records in the table.
MARK-NEW( ) does not support record deletes or updates.
If buffer object handle points to a static temp-table that was defined without a BEFORE-TABLE option, MARK-NEW( ) causes the AVM to raise ERROR. If buffer object handle is for a dynamic temp-table that has no before-table, one is created on-the-fly.

See also

AFTER-TABLE attribute, MARK-ROW-STATE( ) method