CREATE QUERY statement
- Last Updated: February 11, 2026
- 1 minute read
- OpenEdge
- Version 13.0
- Documentation
Creates a dynamic query.
Syntax
|
- handle
- A variable of type HANDLE that represents the handle of the query object.
- IN WIDGET-POOL widget-pool-name
- An expression of type CHARACTER that evaluates, at run time,
to the name of the widget pool that contains the dynamic query.Note: Widget pool names are not case-sensitive.
Example
The following example creates a dynamic query with a static buffer and a dynamic predicate (WHERE clause) which is resolved at run time:
r-crtqry.p
|
Note
- CREATE-QUERY must be followed by the QUERY-PREPARE( ) and QUERY-OPEN() methods before the query can be run.
For more information on dynamic queries, see Use dynamic queries and query handles in Develop ABL Applications.
See also
CREATE BUFFER statement, DEFINE QUERY statement, QUERY-OPEN( ) method, QUERY-PREPARE( ) method