PdcOperationList.DeleteLineNumber: Difference between revisions
Jump to navigation
Jump to search
Created page with "== Declaration == DeleteLineNumber(LineNo as long) == Description == Removes an operation with the supplied linenumber == Notes == This method deletes one operation in the ..." |
No edit summary |
||
Line 8: | Line 8: | ||
This method deletes one operation in the operation list. | This method deletes one operation in the operation list. | ||
The parameter is the line number of the operation which has to be deleted.<br /> | The parameter is the line number of the operation which has to be deleted.<br /> | ||
NOTE: | 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 == | == Code example == |
Latest revision as of 09:49, 3 November 2015
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).