PdcOperation.SetupHour: Difference between revisions

From External Bemet Wiki
Jump to navigation Jump to search
Created page with "== Declaration == SetupHour as double == Description == This method returns the Setup hours of an internal operation. == Notes == == Code example == This method returns th..."
 
No edit summary
Line 3: Line 3:


== Description ==
== Description ==
This method returns the Setup hours of an internal operation.
This method returns the setup hours of an internal operation.
If the operation is external or extra the methods returns 0


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


== Code example ==
== Code example ==
This method returns the Setup hours of the first internal operation of a calculation.
This method returns the setup time of the first operation of a calculation.


<source lang="vb">
<source lang="vb">

Revision as of 11:19, 22 June 2017

Declaration

SetupHour as double

Description

This method returns the setup hours of an internal operation. If the operation is external or extra the methods returns 0

Notes

Code example

This method returns the setup time of the first operation of a calculation.

Sub sGetSetupHours
dim objCalc
dim objBWPL

  set objCalc = pdc.ActiveCalculation
  set objBWPL = objCalc.OperationList(0)

  msgbox objBWPL.SetupHour

  set objBWPL = nothing
  set objCalc  = nothing
End Sub

Availability

5.3 and onwards