[comp.sys.mac.programmer] CountResources

think@ut-emx.UUCP (S J MOON) (01/31/89)

   CountResources('STR#') returns the total number 
   of resources of the given type(STR#) in all open
   resource files.

   How to get the number of resources of 'STR#' in 
   the current running file only ?

     Thanks.        S J MOON

wiechman@athos.rutgers.edu (NightMeower) (01/31/89)

In article <10030@ut-emx.UUCP> think@ut-emx.UUCP (S J MOON) writes:

>    CountResources('STR#') returns the total number 
>    of resources of the given type(STR#) in all open
>    resource files.
> 
>    How to get the number of resources of 'STR#' in 
>    the current running file only ?




Try Count1Resources.  Count1Resources will return the number of STR#
resources in the current resource file.  Be certain that you are in
the correct resource file.

You'll also have to be careful about backward compatibilty.
Count1Resources was added in the 128K ROM.


Kevin
-- 
===========================================================================
Kevin S. Wiechmann			arpa:  wiechman@rutgers.rutgers.edu

	 This is only a test... for the next sixty seconds...