UniqueID
To get unique resource ID, before adding a new resourse, use the UnigueID function.
FUNCTION UnigueID (rType) as Integer
rType String which contains 4 characters
which indentify the resource type;
e.g. "PICT".
Returns: a unique unused resource ID.
Description:
Returns a unique, unused resource ID that will not collide with any resource of the specified type in any open resource file.
Supported platforms:
* MacOS PPC
* MacOS Carbon
Unsupported platforms:
* Windows x86