PA_CloseResfile

4D - Documentation   Français   English   German   4D Plugin API, Command Theme List   4D Plugin API, Command Alphabetical List   Back   Previous   Next

version 2003


PA_CloseResfile (resfile)

ParameterTypeDescription
resfileshortFile reference number of the file to close

Description

The routine PA_CloseResfile closes the file resFile, previously opened by PA_CreateResFile or PA_OpenResFile.

When the routine is called, it updates the file, writing all buffers to disk in use (index resources table). To simply update a resource file, use PA_UpdateResFile.

Example

Sample Open/Close a resource file.

   short   ref;
   ref = PA_OpenResFile("\pDisk:Folder:ResourceFile");  Using Pascal strings under MacOS
   if(PA_GetLasterror() == eER_NoErr)
   {
   /* . . . deal with the resources . . . */
      PA_CloseResFile(resFile);
   }

See Also

PA_CreateResFile, PA_OpenResFile.

Error Handling

Use PA_GetLastError to see if an error occurred


4D - Documentation   Français   English   German   4D Plugin API, Command Theme List   4D Plugin API, Command Alphabetical List   Back   Previous   Next