• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Bad Characters
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bad Characters


  • Subject: Re: Bad Characters
  • From: "Mark J. Reed" <email@hidden>
  • Date: Wed, 15 Oct 2008 20:24:59 -0400

On Wed, Oct 15, 2008 at 7:42 PM, Luther Fuller <email@hidden> wrote:
> Yes, I know they are control characters. We discussed this a year or so ago.
> But they are not null characters!

Well, the null *character* is different from the concept of "null"
(which AS calls "the missing value"); it's nothing special, just
another character whose code point happens to be zero; it's also a
control character, and as Chris said, it looks like all control
characters compare as equal:

     character id 31 = character id 26  ==> true

If you need to compare a character to nul exactly, try taking its id
and comparing it to 0:

    if id of testChar = id of nullChar

or just

    if id of testChar = 0









--
Mark J. Reed <email@hidden>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Bad Characters
      • From: "Mark J. Reed" <email@hidden>
References: 
 >Bad Characters (From: Luther Fuller <email@hidden>)
 >Re: Bad Characters (From: "Mark J. Reed" <email@hidden>)
 >Re: Bad Characters (From: Luther Fuller <email@hidden>)

  • Prev by Date: Re: Bad Characters
  • Next by Date: Re: Bad Characters
  • Previous by thread: Re: Bad Characters
  • Next by thread: Re: Bad Characters
  • Index(es):
    • Date
    • Thread