DeleteRow Method (DATATABLE)


10.5, PLBCMP GUI Only

 

The DeleteRow method deletes one row from the DATATABLE. The method uses the following format:

 

[label]

{object}.DeleteRow

[GIVING {return}] USING [*Row=]{row}

 

Where:

label

Optional. A Program Execution Label.

object

Required. A DATATABLE object.

return

Optional. A Numeric Variable that returns zero if the method fails.

row

Required. A decimal number or Numeric Variable that indicates the zero-based row that is deleted.

Flags Affected: EOS, OVER, ZERO

Note the following:

  1. If the DATATABLE has the TRANSACTION property enabled, this method sets a deleted state flag for the row and adds this operation to an undo stack being maintained. Otherwise, the row and the table data are deleted.

  2. The EOS flag is always cleared.

  3. The ZERO flag is set if the {return} value is zero.

  4. The OVER flag is set if the {return} variable is too small to receive the return value.

 

 

See Also: Method Syntax, DATATABLE Methods

 



PL/B Language Reference DeleteColumn Method (DATATABLE) EnsureVisible Method (DATATABLE)