home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.hypercard
- Path: sparky!uunet!bellahs!lroberts
- From: lroberts@bellahs.com (Laurence Roberts PSE)
- Subject: Matching quotes in fields
- Message-ID: <1993Jan25.191057.22124@bellahs.com>
- Organization: Bell Atlantic Healthcare Systems
- Date: Mon, 25 Jan 1993 19:10:57 GMT
- Lines: 15
-
-
- I wanted to do input so that generic quote marks would change to left
- or right quotes. I wrote a handler that works o.k., I just wanted to
- know if there was an easier way or if anyone has an especially slick method.
- Basically, if the quote key is hit, I get the current selected chunk,
- subtract to get the previous character, if it's a space or empty (to take
- care of the 1st character in the string), use the left quote, otherwise
- use the right quote.
-
- If I put the handler in the background instead of in the field, it changes
- generic quotes in the message box, which isn't very desirable.
-
- Laurence Roberts
- lroberts@bellahs.com
-
-