TOOL_RES.Rfclose
Description
Closes the specified resource file. All files opened with Tool_Res.Rfopen should be closed using Tool_Res.Rfclose before quitting the application.
Syntax
PROCEDURE Tool_Res.Rfclose
(file rfhandle);
Parameters
Parameter |
Description |
file |
A file to close. |
Usage Notes
The following exceptions may be raised by RFCLOSE:
Exception |
Description |
BAD_FILE_HANDLE |
Raised if the file handle does not point to a valid file. |
Tool_Err.Tool_Error |
Raised if an internal error is trapped. |
Example
/*
** This examples uses Tool_Res.Rfclose
*/
PROCEDURE my_cleanup
(my_file_handle IN OUT TOOL_RES.RFHANDLE)IS
BEGIN
/* Assign a resource file to 'fhandle.' */
...
/* Close the resource file with the
handle ‘fhandle.’ */
TOOL_RES.RFCLOSE(my_file_handle);
...
END;