home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / mac / programm / 14656 < prev    next >
Encoding:
Internet Message Format  |  1992-08-29  |  1.1 KB

  1. Path: sparky!uunet!dtix!darwin.sura.net!jvnc.net!yale.edu!yale!actcnews!sun1x!dcemax1.res.utc.com!rer
  2. From: rer@utrcv1.res.utc.com (Rick E Romkey)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Comparing strings 'n stuff...
  5. Message-ID: <1992Aug28.134804.9876@sun1x.actc.res.utc.com>
  6. Date: 28 Aug 92 13:48:04 GMT
  7. Sender: news@sun1x.actc.res.utc.com
  8. Organization: United Technologies Research Center
  9. Lines: 28
  10. X-Xxmessage-Id: <A6C3A7927D011E65@dcemax1.res.utc.com>
  11. X-Xxdate: Fri, 28 Aug 92 09:51:14 GMT
  12. Nntp-Posting-Host: 192.19.30.101
  13. X-Useragent: Nuntius v1.1.1d7
  14.  
  15.  
  16. I am trying to compare a Str255 with a String which exists
  17. in my resource file.  I have loaded it in, but I am at a loss
  18. as to what to do to compare these two strings to see if they
  19. are equivalent.
  20.  
  21.  
  22. Boolean CompareStrings( Str255 inString )
  23. {
  24.     StringHandle    textHandle;
  25.     
  26.     textHandle = GetString( 128 );
  27.     
  28.     if (textHandle == nil) {
  29.         SysBeep(20);
  30.         ExitToShell();
  31.     }
  32.     
  33. /* WHAT DO I DO NOW??????? */
  34. }
  35.  
  36.  
  37. Any help?
  38. Rick E Romkey
  39. Distributed Computing Environments
  40. United Technologies Research Center
  41. East Hartford, CT
  42. (203)727-7195
  43.