PdcCalculations.Copy: Difference between revisions

From External Bemet Wiki
Jump to navigation Jump to search
Created page with "== Declaration == Copy(CalculationNo as String) as pdcCalculation == Description == Opens, returns and shows a calculation object == Notes == This method opens a calcul..."
 
No edit summary
Line 3: Line 3:


== Description ==
== Description ==
Opens, returns and shows a calculation object  
Copy the calculation of the applied number and returns the copied calculation object  


== Notes ==
== Notes ==
This method opens a calculation in an object and shows the calculation in Plan-de-CAMpagne.
This method copies a calculation.
The copy is identical to the manual copy in PdC with all the copy options checked and all the update options unchecked.
To update the calculation (for example the prices), you have to call the 'UpdateAll' command of the calculation object.  


CalculationNo = Calculation number of requested calculation
CalculationNo = The calculation number to copy from.


== Code example ==
== Code example ==
This code opens calculation 0801-000087 and shows the calculation form in PdC.
This code takes copy of calculation 0801-000087 and shows the copy in PdC.


<source lang="vb">
<source lang="vb">
pdc.calculations.show "0801-000087"
dim objCalc
  set objCalc = pdc.calculations.Copy("0801-000087")
  objCalc.Show
</source>
</source>


== Availability ==
== Availability ==
Available since April 2014 (version 4.3 onwards).
Available since April 2014 (version 4.3 onwards).

Revision as of 13:37, 11 April 2014

Declaration

Copy(CalculationNo as String) as pdcCalculation

Description

Copy the calculation of the applied number and returns the copied calculation object

Notes

This method copies a calculation. The copy is identical to the manual copy in PdC with all the copy options checked and all the update options unchecked. To update the calculation (for example the prices), you have to call the 'UpdateAll' command of the calculation object.

CalculationNo = The calculation number to copy from.

Code example

This code takes copy of calculation 0801-000087 and shows the copy in PdC.

dim objCalc
  set objCalc = pdc.calculations.Copy("0801-000087")
  objCalc.Show

Availability

Available since April 2014 (version 4.3 onwards).