CREATE DATA-SOURCE statement

Creates a data-source object dynamically at run time.

Syntax

CREATE DATA-SOURCE data-source-handle [ IN WIDGET-POOL widget-pool-name ]
data-source-handle
A variable of type HANDLE that represents the handle of the dynamic data-source object.
IN WIDGET-POOL widget-pool-name
An expression of type CHARACTER that evaluates, at run time, to the name of the widget pool in which the dynamic data-source object is created.
Note: Widget pool names are not case-sensitive.

Notes

If you do not specify a widget pool name, the dynamic data-source object is created in the closest unnamed widget-pool, by default. The object goes away when its widget pool goes away or when you delete it using the DELETE OBJECT statement.

See also

Data-source object handle, DEFINE DATA-SOURCE statement