PdcClockLine.TimeKind: 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 ==
Returns or changes the time kind of a clockline. The following time kinds are available:


* 0 = combined
* 1 = setuptime
* 2 = cycletime


== Notes ==
== Notes ==

Latest revision as of 12:38, 31 July 2013

Declaration

TimeKind as long

Description

Returns or changes the time kind of a clockline. The following time kinds are available:

  • 0 = combined
  • 1 = setuptime
  • 2 = cycletime

Notes

Code example

This code example returns the timekind of clockline with ID "456".

Sub sGetClockLineTimeKind
dim objClockLine
dim intID

  intID = "456"
  set objClockLine = pdc.ProductRegistration.ClockLines.Open(intID)

  if IsValid(objClockLine) then
    msgbox objClockLine.TimeKind
  end if

  set objClockLine = nothing
End Sub

Availability