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

Return Values

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

0 -- Continue processing

Usage

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

Examples

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

dw_1.SetTransObject(SQLCA)
dw_1.Retrieve( )

See also

Destructor