StartTime Property (ATask)

Version 7

Returns the time that this task started.

Syntax

 [ dateStart = ] Object.StartTime

The StartTime property syntax has the following parts:

 

Name

Type

Description

Object

ATask

ATask object

dateStart

DateTime

A floating number (Double) specifying the time that this task started.

Comments

StartTime is the time when the test get executed after all OnIniTask  event were called.

Example

The following code fragment from the OnInitTask event of the program aborts the application if this task is starting after a hard deadline:

if Task.StartTime > m_dtmDeadline

print "*** Task "; Task.Name; " failed to start before deadline ***"

Abort

endif

Applies to

ATask

See Also

EndTime, DataTime data type, SDate, STime, FormatDateTime,  ParseDateTime, VarChangeType