A script-enabled browser is required for this page to function properly.

TOOL_RES.RFCLOSE built-in procedure

This procedure 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:

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;

See also

About the TOOL_RES built-in package

TOOL_RES built-in package