PdcOperationList.DeleteLineNumber
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).