Constructor

Description

Occurs when the DataWindow control or DataStore object is created, just before the Open event for the window that contains the control.

PowerBuilder event information Event ID: pbm_constructor

Web ActiveX event information Event name: onConstructor

Returns

There are no special outcomes for this event. The only code is:

Usage

You can write code for the Constructor event to affect DataWindow properties before it is displayed.

Examples

Example 1

This example retrieves data for the DataWindow dw_1 before its window is displayed:

dw_1.SetTransObject(SQLCA)

dw_1.Retrieve( )

See also