PA_RemoveResourceByID

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

version 2003


PA_RemoveResourceByID (resFile; kind; resID)

ParameterTypeDescription
resFileshortFile reference number of the file to access
kindunsigned longKind (4 Bytes type) of resource to access
resIDshortUnique resource ID

Description

The routine PA_RemoveResourceByID removes the resource ID resID of type kind from the file referenced by resFile.

If the resource does not exist or if resFile is an invalid file reference number, the routine does nothing and sets PA_GetLastError to -3.

Example

Remove personal resource ID 12.

   #define kMyResourceKind   'PERS'
   /* . . . */
   PA_RemoveResourceByID(resFile, kMyResourceKind, 12);

See Also

PA_RemoveResourceByName.

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