PdcClockLine.StartClocking: Difference between revisions

From External Bemet Wiki
Jump to navigation Jump to search
Created page with "== Declaration == StartClocking as double == Description == Returns the start of the clocking == Notes == This property returns or changes the startdate and time of the clo..."
 
No edit summary
 
Line 14: Line 14:


== Code example ==
== Code example ==
This code example returns the start of the clocking of clockline with ID "456". 


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


  intID = "456"
  set objClockLine = pdc.ProductRegistration.ClockLines.Open(intID)
  if IsValid(objClockLine) then
    msgbox objClockLine.StartClocking
  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:32, 31 July 2013

Declaration

StartClocking as double

Description

Returns the start of the clocking

Notes

This property returns or changes the startdate and time of the clock line.
If a end time stamp and a personel number is filled, the WorkedTime is schedule based calculated.

The value is a floating point value. All whole values larger than 0 are days. For example: 40221 is CLng(11-02-2010).
The value "0" is the start date 31-12-1899.
The decimal part is the time. For example: 1 hour is 1/24.

Code example

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

Sub sGetClockLineStartClocking
dim objClockLine
dim intID

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

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

  set objClockLine = nothing
End Sub

Availability

Available since july 2008 (from version 3.8).