home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ogicse!das-news.harvard.edu!husc-news.harvard.edu!husc8!lward
- From: lward@husc8.harvard.edu (Lester Ward)
- Newsgroups: comp.sys.mac.hypercard
- Subject: Re: changing delimiter char??
- Message-ID: <lward.721081128@husc8>
- Date: 6 Nov 92 20:18:48 GMT
- Article-I.D.: husc8.lward.721081128
- References: <168978E98.KGODDEN@cmsa.gmr.com>
- Lines: 28
- Nntp-Posting-Host: husc8.harvard.edu
-
- KGODDEN@cmsa.gmr.com writes:
-
- >If I have a string say, "a b c" and get the second word, it'll return "b"
- >because the space is a delimiter. I am pretty sure that there is a way
- >to *change* the delimiter to any character, say '^', but I cannot find any
- >reference to this in the Hypertalk reference manual. Can someone please
- >tell me how to do this? I think there is a parameter to set. What I *really*
- >want to do is have a string like "foo bar^fubar^fu the bar^..." and if I
- >get the FIRST 'word' (or item?) it should return "foo bar" and so on.
- >If anyone posts an answer before Monday, could you please also send me
- >email at foobaz@AOL.com
- >so I can read it at home during the weekend?
- >Thanks!!!!!!!!!!!!!!
- >-Kurt
- >-------------
- >"I distrust a research person who is always obviously busy on a task."
- >-Robert A. Frosch, VP, GM Research
-
- set ItemDelimiter to "^"
-
- Then
-
- put item 1 of "foo bar^fubar^fu the bar"
-
- will put "foo bar" in the message box.
-
- Les
- Programmer, FAS Computer Services, Harvard University
-