CLOSE RESOURCE FILE

4D - Documentation   Français   English   German   Spanish   4D v11 SQL, Command Theme List   4D v11 SQL, Command Alphabetical List   4D v11 SQL, Constant Theme List   Back   Previous   Next

version 6.0


CLOSE RESOURCE FILE (resFile)

ParameterTypeDescription
resFileDocRefResource file reference number

Description

The CLOSE RESOURCE FILE command closes the resource file whose reference number is passed in resFile.

Even if you have opened the same resource file several times, you need to call CLOSE RESOURCE FILE only once in order to close that file.

If you apply CLOSE RESOURCE FILE to the 4D application or database resource files, the command detects it and does nothing.

If you pass an invalid resource file reference number, the command does nothing.

Remember to eventually call CLOSE RESOURCE FILE for a resource file that you have opened using Open Resource file or Create resource file. Note that when you quit the application (or open another database), 4D automatically closes all the resource files you opened.

Example

The following example creates a resource file, adds a string resource and closes the file:

   $vhDocRef:=Create resource file("Just a file")
   If (OK=1)
      SET STRING RESOURCE(20000;"Just a string";$vhDocRef)
      CLOSE RESOURCE FILE($vhDocRef)
   End if

See Also

Create resource file, Open resource file.


4D - Documentation   Français   English   German   Spanish   4D v11 SQL, Command Theme List   4D v11 SQL, Command Alphabetical List   4D v11 SQL, Constant Theme List   Back   Previous   Next