APLX Help
: System Classes
: Methods
: Close
|
|
![]() |
The 'Close' method |
Argument: Optional boolean scalar - see text Valid for: Any object except System, but usually applies only to Form, Window, Document, Dialog, APL, SendMail, GetMail, Socket, and Printer objects The Close method is used to request an object to close itself. Window-level and other visible objectsFor a Window, Form, Dialog or Document, and for other visible objects, the exact behavior depends on the event handler state and the argument to the Close method.
When an object is closed it is no longer visible, but it still exists. You can still read or set its properties, and it can subsequently be re-opened in the same state by using the Open method. However, you should remember that a closed object continues to use system memory, and therefore if an object is not going to be needed again you should destroy it altogether (using the Delete method) as soon as you can, for example at the end of the onClose callback function. For a Form, Dialog, Window or Document object, invoking the Close method without an argument has the same effect as the user clicking in the close box in the window's title bar. Printer objectFor a Printer object, the Close method has a special effect. The current print job is closed, and submitted to the printer. The method takes no argument. APL (child task) objectFor an APL object, the Close method terminates the child task, closing any windows belonging to the task and freeing the workspace memory. The method takes no argument. Networking objectsFor the SendMail, GetMail and Socket objects, the Close method closes the connection and releases resources at the other end. It takes no arguments. You should always ensure you call the Close method when the communications session is complete. |
|
APLX Help
: System Classes
: Methods
: Close
|
Copyright © 1996-2010 MicroAPL Ltd