• 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: Luther Fuller <email@hidden>
  • Date: Thu, 16 Oct 2008 10:54:34 -0500

And, I've also noticed ...

set testStr to (character id 0) & (character id 0) & (character id 0)
if testStr = "" then
	"empty" & space & (length of testStr)
else
	"[" & testStr & "]" & space & (length of testStr)
end if
display dialog the result --> an empty string of length 3 (ROFL)

There seems to be some confusion between 'empty string' and 'null string'.
An empty string has length = 0, while the null string contains a single
character (character id 0), hence has length = 1. They are never the same.


_______________________________________________
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
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>)
 >Re: Bad Characters (From: "Mark J. Reed" <email@hidden>)
 >Re: Bad Characters (From: "Mark J. Reed" <email@hidden>)
 >Re: Bad Characters (From: Luther Fuller <email@hidden>)
 >Re: Bad Characters (From: "Mark J. Reed" <email@hidden>)
 >Re: Bad Characters (From: "Mark J. Reed" <email@hidden>)
 >Re: Bad Characters (From: Anthony Sharman <email@hidden>)

  • Prev by Date: AppleScript / INDD CS3 / importing images and offsetting within frame.
  • Next by Date: how to get new urls to open in a different page
  • Previous by thread: Re: Bad Characters
  • Next by thread: Re: Bad Characters
  • Index(es):
    • Date
    • Thread