PdcOperationList.DeleteLineNumber

From External Bemet Wiki
Revision as of 09:49, 3 November 2015 by TC (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Declaration

DeleteLineNumber(LineNo as long)

Description

Removes an operation with the supplied linenumber

Notes

This method deletes one operation in the operation list. The parameter is the line number of the operation which has to be deleted.
NOTE: If the calculation has a production number, the remaining operation lines are renumbered to avoid gaps in line numbers. In case you need to replace the deleted line in a calculation with a production number, use InsertLineNumber with the original linenumber-1. The renumbering after the Insert will set them correctly again.

Code example

This code example delete line 20 in an operationlist.

dim objCalc

  set objCalc = pdc.ActiveCalculation
  objCalc.OperationList.DeleteLineNumber 20
  objCalc.Refresh

Availability

Available since 2004 (version 2.7).