PdcClockLine.PersonelNo

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

Declaration

PersonelNo as String

Description

Returns or changes the personel number

Notes

This property returns or changes the Personel number of the clock line. The following properties are adjusted:
Personelname  : Becomes the name which belongs to the personel number. If the personel is a machine, it becomes "unattended".
ScheduleID  : Becomes the ID of the active time schedule of the given person an date.

Code example

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

Sub sGetClockLinePersonelNo
dim objClockLine
dim intID

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

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

  set objClockLine = nothing
End Sub

Availability

Available since july 2008 (from version 3.8).