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