home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!darwin.sura.net!mips!apple!apple!kip-3
- From: tron@apple.com (Tantek Celik)
- Newsgroups: comp.sys.mac.hypercard
- Subject: Re: Length limit on names?
- Message-ID: <tron-270792132925@kip-3.apple.com>
- Date: 27 Jul 92 20:33:04 GMT
- References: <1992Jul20.140447.21131@cc.ic.ac.uk>
- Sender: usenet@Apple.COM
- Followup-To: comp.sys.mac.hypercard
- Organization: Apple Computer, Inc.
- Lines: 45
-
- In article <1992Jul20.140447.21131@cc.ic.ac.uk>, j.kew@ic.ac.uk (James Kew)
- wrote:
- >
- > I'm writing a stack that cross-references albums track-listings and
- > song lyrics, among other things.
- >
- > A couple of quick questions:
- >
- > 1) What is the maximum length of a card name in characters?
- > 2) How can I truncate a string to a given character length, if it
- > is over-long?
- >
- > (I store my lyric cards with the name of the card = the song title;
- > then go card the_song_title. Truncating the titles wouldn't hurt
- > the indexing at all.)
- >
-
- I think the number you're looking for is 30. But try experimenting for
- yourself with
-
- set the name of this card to aLongName
-
- and to truncate a string to a given char length:
-
- put char 1 to n of songTitle into songTitleCardName
-
- where n is the number of characters you want (probably 30).
-
-
- > Thanks.
- >
-
- you're welcome.
-
- > ______________________________________________________________________
- > James Kew <j.kew@ic.ac.uk> "Well, on a scale of one to ten
- > Physics (SSTH) I'd say it's bicycle clip time."
- > Imperial College, London. - Eddie Hitler, Bottom
-
- tron@apple.com
-
- THE OPINIONS CONTAINED HEREIN ARE THOSE OF MY OWN, NOT OF MY USER OR
- SYSTEM.
-
- END OF LINE.
-