PdcOperationList.Delete

From External Bemet Wiki
Jump to navigation Jump to search

Declaration

Delete(Index as long)

Description

Removes an operation object

Notes

This method deletes one operation in the operation list. The parameter is the index of the operation which has to be deleted.
NOTE: When one operation has to be deleted, loop always from the end of the operation list. On the contrary it results in a error message.

Code example

This code example delete the second operation in an operation list with more than 1 operation.

dim objCalc
dim intTel

  set objCalc = pdc.ActiveCalculation
  for intTel = objCalc.OperationList.Count - 1 to 0 step - 1
    if intTel = 1 then
      objCalc.OperationList.Delete intTel
    end if
  next
  objCalc.Refresh

Availability

Available since 2004 (version 2.7).