DeleteColumn Method (DATATABLE)


10.5, PLBCMP GUI Only

 

The DeleteColumn method delete one column from the DATATABLE. The method uses the following format:

 

[label]

{object}.DeleteColumn

[GIVING {return}] USING [*Col=]{column}

 

Where:

label

Optional. A Program Execution Label.

object

Required. A DATATABLE object.

return

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

column

Required. A decimal number or Numeric Variable that indicates the zero-based column 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 column 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 DeleteAllRows Method (DATATABLE) DeleteRow Method (DATATABLE)