Timing object – PB Docs 150

Timing object

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.

Properties

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.

Events

Timing event

Occurs

Constructor

Immediately before the Open event occurs
in the window

Destructor

Immediately after the Close event occurs
in the window

Timer

When a specified number of seconds elapses
after the Start function has been called

Functions

Timing function

Datatype returned

Description

ClassName

String

Returns the name assigned to the object

GetContextService

Integer

Creates a reference to a context-specific
instance of the specified service

GetParent

PowerObject

Returns a reference to the name of the
parent object

PostEvent

Boolean

Adds an event to the end of the message
queue for the object

Start

Integer

Activates the timing object using a specified
interval

Stop

Integer

Deactivates the timing object

TriggerEvent

Integer

Triggers a specific event in the object
and executes the script for the event

TypeOf

Object

Returns the type of the object


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x