close
The EGL close statement disconnects a record variable from an associated data source. The exact behavior of the statement depends on the way you have stereotyped the variable (see Stereotypes).
For specific considerations that apply to the close statement when you use various data source technologies (such as SQL), see the related reference at the end of this topic.
Syntax

- recordVariable
- The name of the record variable associated with the data source that you are closing.
- listID
- The character string that you chose to identify the list that you created with the open statement.
Examples
In the following
example, the user exits from a display of the myCustomer record:
if (userRequest == "X") // exit request
try
close myCustomer;
onException(ex AnyException)
myErrorHandler(ex);
end
end