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.

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