Timing is a nonvisual system object that can be used when a Timer event cannot be associated with a window. To use a timing object, create a standard class user object that inherits from the Timing system class, and then create an instance of the inherited timing object.
Timing property |
Datatype |
Description |
---|---|---|
ClassDefinition |
PowerObject |
An object of type PowerObject containing information about the class definition of the object or control. |
Interval |
Double |
(Read-only) The minimum number of seconds the timing object waits between calls to the Timer event. This property is initially set to NULL and is modified whenever the Start function is called. |
Running |
Boolean |
(Read-only) True if the timing object has been started and is currently running. False if the timing object is not running. |
Timing event |
Occurs |
---|---|
Constructor in PowerScript Reference |
Immediately before the Open event occurs in the window |
Destructor in PowerScript Reference |
Immediately after the Close event occurs in the window |
Timer in PowerScript Reference |
When a specified number of seconds elapses after the Start function has been called |
Timing function |
Datatype returned |
Description |
---|---|---|
ClassName in PowerScript Reference |
String |
Returns the name assigned to the object |
GetContextService in PowerScript Reference |
Integer |
Creates a reference to a context-specific instance of the specified service |
GetParent in PowerScript Reference |
PowerObject |
Returns a reference to the name of the parent object |
PostEvent in PowerScript Reference |
Boolean |
Adds an event to the end of the message queue for the object |
Start in PowerScript Reference |
Integer |
Activates the timing object using a specified interval |
Stop in PowerScript Reference |
Integer |
Deactivates the timing object |
TriggerEvent in PowerScript Reference |
Integer |
Triggers a specific event in the object and executes the script for the event |
TypeOf in PowerScript Reference |
Object |
Returns the type of the object |