Futurebasic/Language/Reference/usr replaceresource

From Wikibooks, open books for an open world
Jump to navigation Jump to search

Syntax[edit | edit source]


Revised[edit | edit source]

August, 2002 (Release 7)

Description[edit | edit source]

With the release of Mac OS X, the ability to easily open a resource file has dissipated like smoke. But a simple modification will revive your older FN OPENRFPERM. Just change the FN to USR and a new FB routine will work in version of the System software from System 7.x to Mac OS X. As with the original toolbox function, the parameters are the file name, the volume reference number (which is handled in the background by FB) and the permission constant. Legal permission constants are: