home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / mac / hypercar / 4925 < prev    next >
Encoding:
Text File  |  1993-01-25  |  934 b   |  25 lines

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