PdcClockLine.OperationLineNo

From External Bemet Wiki
Revision as of 12:09, 31 July 2013 by Mike (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Declaration

OperationLineNo as long

Description

Returns or changes the operation's linenumber in the calculation

Notes

This property returns or changes the operation line number. Only in case of a direct clock line this property can be filled. If the value of the line number does not exist in the calculation (anything other than 0!), a new operation is added to the calculation with the applied line number. This is done during the processing of the clocklines, using pdc.ProductRegistration.Clocklines.Process.

Code example

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

Sub sGetClockLineOperationLineNo
dim objClockLine
dim intID

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

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

  set objClockLine = nothing
End Sub

Availability

Available since july 2008 (from version 3.8).