PdcCalculation.CalculateLeadTime: Difference between revisions

From External Bemet Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 3: Line 3:


== Description ==
== Description ==
 
This method calculates the lead time of a calculation. With the boolean it is possible to specify if the function also should show the calculated lead time log.


== Notes ==
== Notes ==
Line 9: Line 9:


== Code example ==
== Code example ==
This code example calculates the lead time of an active calculation and shows the logfile.
<source lang="vb">
Sub sCalcLeadTime
dim objCalc


  set objCalc = pdc.ActiveCalculation


<source lang="vb">
  msgbox objCalc.CalculateLeadTime(true)


  set objCalc = nothing
End Sub
</source>
</source>


== Availability ==
== Availability ==

Latest revision as of 11:26, 31 July 2013

Declaration

CalculateLeadTime(showLog as Boolean) as long

Description

This method calculates the lead time of a calculation. With the boolean it is possible to specify if the function also should show the calculated lead time log.

Notes

Code example

This code example calculates the lead time of an active calculation and shows the logfile.

Sub sCalcLeadTime
dim objCalc

  set objCalc = pdc.ActiveCalculation

  msgbox objCalc.CalculateLeadTime(true)

  set objCalc = nothing
End Sub

Availability