Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!nrl-cmf!ukma!rutgers!elbereth.rutgers.edu!aramis.rutgers.edu!athos.rutgers.edu!wiechman From: wiechman@athos.rutgers.edu (NightMeower) Newsgroups: comp.sys.mac.programmer Subject: Re: CountResources('STR#') Keywords: lsc, STR# Message-ID: Date: 31 Jan 89 13:35:38 GMT References: <10030@ut-emx.UUCP> Organization: Rutgers Univ., New Brunswick, N.J. Lines: 26 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...