Skip to main content
Version: Next

CLOSE RESOURCE FILE

CLOSE RESOURCE FILE ( resFile )

ParameterTypeDescription
resFileDocRef🡒Resource 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. Note that when you quit the application (or open another database), 4D automatically closes all the resource files you opened.

See also

Open resource file