Error getting tags :
error 404Error getting tags :
error 404 getResource | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
getResource
Basics
Expander triangle
Type
Function
Syntax
getResource(filePath,resourceType,{resourceName | resourceID})
Introduced
1.1
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X
Security
Disk
Summary
Returns the data in a Mac OSresource.
Examples

getResource("/Hard Drive/Stuff","DLOG",128)
getResource(it,"BNDL","Application")

Additional Comments
Expander triangle

Use the getResource function to get the contents of a resource.

Parameters:

The filePath is the location and name of the file that holds the resource you want. 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.

The resourceName is a string or an expression that evaluates to a string.

The resourceID is an integer or an expression that evaluates to an integer.

Value:

The getResource function returns the text or binary data in the specified resource.

If the specified resource does not exist, the getResource function returns empty.

Comments:

If the filePath does not exist, the result is set to "can't find file". If the filePath exists, but the file has no resource fork, the result is set to "can't open resource fork". If the filePath contains a resource fork but does not contain the specified resource, the result is set to "can't find specified resource".

User Comments
Expander triangle