PdcClockLine.History: Difference between revisions

From External Bemet Wiki
Jump to navigation Jump to search
Created page with "== Declaration == History as Boolean == Description == Returns or changes the history flag == Notes == This property returns or changes the history flag. If the flag is tur..."
 
No edit summary
 
Line 10: Line 10:


== Code example ==
== Code example ==
This code example writes clockline with ID "456" to history.


<source lang="vb">
<source lang="vb">
Sub sClockLineToHistory
dim objClockLine
dim intID


  intID = "456"
  set objClockLine = pdc.ProductRegistration.ClockLines.Open(intID)
  if IsValid(objClockLine) then
    objClockLine.History = true
  end if
  set objClockLine = nothing
End Sub
</source>
</source>


== Availability ==
== Availability ==
Available since july 2008 (from version 3.8).
Available since july 2008 (from version 3.8).

Latest revision as of 12:05, 31 July 2013

Declaration

History as Boolean

Description

Returns or changes the history flag

Notes

This property returns or changes the history flag. If the flag is turned to true, the clock line is written to history.

Code example

This code example writes clockline with ID "456" to history.

Sub sClockLineToHistory
dim objClockLine
dim intID

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

  if IsValid(objClockLine) then
    objClockLine.History = true
  end if

  set objClockLine = nothing
End Sub

Availability

Available since july 2008 (from version 3.8).