PdcProjectLineList.AddCalculationCopy: Difference between revisions

From External Bemet Wiki
Jump to navigation Jump to search
Created page with "== Declaration == AddCalculationCopy(ACalcNr as String) as PdcProjectLine == Description == == Notes == == Code example == <source lang="vb"> </source> == Availabi..."
 
No edit summary
Line 3: Line 3:


== Description ==
== Description ==
 
Copy the applied calculation always as a new projectline.


== Notes ==
== Notes ==
 
The calculation copy screen is showed. The user can change options for the copy.


== Code example ==
== Code example ==


<source lang="vb">
<source lang="vb">
dim objProject
dim objPJLine


  set objProject = pdc.projects.active
  set objPJLine = objProject.ProjectLineList.AddCalculationCopy("01351")
  if IsValid(objPJLine) then
    msgbox "The calculation is copied."
  else
    msgbox "The copy of the calculation is failed."
  end if
  objProject.Refresh
</source>
</source>


== Availability ==
== Availability ==
Available since February 2011 (From version 4.2 onwards).
Available since February 2011 (From version 4.2 onwards).

Revision as of 11:26, 31 March 2014

Declaration

AddCalculationCopy(ACalcNr as String) as PdcProjectLine

Description

Copy the applied calculation always as a new projectline.

Notes

The calculation copy screen is showed. The user can change options for the copy.

Code example

dim objProject
dim objPJLine

  set objProject = pdc.projects.active
  set objPJLine = objProject.ProjectLineList.AddCalculationCopy("01351")
  if IsValid(objPJLine) then
    msgbox "The calculation is copied."
  else
    msgbox "The copy of the calculation is failed."
  end if
  objProject.Refresh

Availability

Available since February 2011 (From version 4.2 onwards).