PdcClockLine.Read

From External Bemet Wiki
Jump to navigation Jump to search

Declaration

Read(aID as long) as Boolean

Description

Returns true or false whether the clockline is succesfully read with the supplied id

Notes

This method read an existing clock line just as "Pdc.ProductRegistration.ClockLines.Open". The input parameter is the ID of the clock line. Pay attention: The sequence of filling properties is important. See the helpfile for the properties.

Code example

This example code opens a clock line and shows the most important data of the clock line.

dim objClockLine

  Set objClockLine = Pdc.ProductRegistration.ClockLines.New
  objClockLine.Read 469
  msgbox "Employee '" & objClockLine.PersonelName & "' (number " & _
                       objClockLine.PersonelNo & ") booked " & _
                       Round((objClockLine.WorkedTime) * 60, 0) & " minutes on '" & _
                       objClockLine.ClockAccount & "'."
  Set objClockLine = nothing

Availability

Available since july 2008 (from version 3.8).