Try OpenEdge Now
skip to main content
ABL Essentials
Using Queries : Defining and using queries : Closing a query
 

Closing a query

Use this statement to close a query that is no longer needed:
CLOSE QUERY query-name.
An OPEN QUERY statement automatically closes a query if it was previously open. For this reason, it isn't essential to execute a CLOSE QUERY statement just before reopening a query. However, you should explicitly close a query when you are done with it and you are not immediately reopening it. This frees the system resources used by the query. After you close the query you cannot reference it again (with a GET statement, for instance). However, if there are records still in the buffer or buffers used by the query, they are still available after the query is closed unless your application has specifically released them.