Error getting tags :
error 404Error getting tags :
error 404 deleteResource | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
deleteResource
Basics
Expander triangle
Type
Function
Syntax
deleteResource(file,resourceType,{resourceID | resourceName})
Introduced
1.0
Environment
Desktop,Web
Platform Support
MacOS,Mac OS X
Security
Disk
Summary
Removes a resource from the resource fork of a Mac OSyword/1860.xml">filenary/keyword/1860.xml">file.
Examples

get deleteResource("New Build",ICN#,129)
put deleteResource(line x of theFiles,XFCN,"Colorize") into temp

Additional Comments
Expander triangle

Use the deleteResource function to delete a resource from a file.

Parameters:

The file is the name and location of the file containing the resource. If you specify a name but not a location, Revolution assumes the file is in the defaultFolder.

The resourceType is the 4-character type of the resource you want to delete.

The resourceID is an integer that specifies the resource ID of the resource you want to delete.

The resourceName is the name of the resource you want to delete.

Value:

The deleteResource function always returns empty.

Comments:

The deleteResource function deletes individual resources within the file, but does not delete the resource fork.

If the file does not exist, the result is set to "can't find file".

If the file exists but has no resource fork, the result is set to "can't open resource fork".

If the file exists but does not contain the specified resource, the result is set to "can't find the resource specified".

If the file is already open, the result is set to "Can't open resource fork".

User Comments
Expander triangle