home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / mac / hypercar / 2904 < prev    next >
Encoding:
Internet Message Format  |  1992-07-28  |  1.6 KB

  1. Path: sparky!uunet!dtix!darwin.sura.net!mips!apple!apple!kip-3
  2. From: tron@apple.com (Tantek Celik)
  3. Newsgroups: comp.sys.mac.hypercard
  4. Subject: Re: Length limit on names?
  5. Message-ID: <tron-270792132925@kip-3.apple.com>
  6. Date: 27 Jul 92 20:33:04 GMT
  7. References: <1992Jul20.140447.21131@cc.ic.ac.uk>
  8. Sender: usenet@Apple.COM
  9. Followup-To: comp.sys.mac.hypercard
  10. Organization: Apple Computer, Inc.
  11. Lines: 45
  12.  
  13. In article <1992Jul20.140447.21131@cc.ic.ac.uk>, j.kew@ic.ac.uk (James Kew)
  14. wrote:
  15. > I'm writing a stack that cross-references albums track-listings and 
  16. > song lyrics, among other things.
  17. > A couple of quick questions:
  18. > 1)  What is the maximum length of a card name in characters?
  19. > 2)  How can I truncate a string to a given character length, if it
  20. >     is over-long?
  21. >     
  22. > (I store my lyric cards with the name of the card = the song title;
  23. > then go card the_song_title.  Truncating the titles wouldn't hurt
  24. > the indexing at all.)
  25.  
  26. I think the number you're looking for is 30.  But try experimenting for
  27. yourself with
  28.  
  29.    set the name of this card to aLongName
  30.  
  31. and to truncate a string to a given char length:
  32.  
  33.    put char 1 to n of songTitle into songTitleCardName
  34.  
  35. where n is the number of characters you want (probably 30).
  36.  
  37.  
  38. > Thanks.
  39.  
  40. you're welcome.
  41.  
  42. > ______________________________________________________________________
  43. > James Kew <j.kew@ic.ac.uk>           "Well, on a scale of one to ten
  44. > Physics (SSTH)                        I'd say it's bicycle clip time."
  45. > Imperial College, London.                       - Eddie Hitler, Bottom
  46.  
  47. tron@apple.com
  48.  
  49. THE OPINIONS CONTAINED HEREIN ARE THOSE OF MY OWN, NOT OF MY USER OR
  50. SYSTEM.
  51.  
  52. END OF LINE.
  53.