Re: Bad Characters
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