Don't test s="" [was Re: Strange string test error]
Don't test s="" [was Re: Strange string test error]
- Subject: Don't test s="" [was Re: Strange string test error]
- From: Emmanuel <email@hidden>
- Date: Thu, 12 Dec 2002 20:56:02 +0100
I just restate the conclusion of the latest posts, so that it be
clear for as many people as possible:
Do not test for an empty string:
----------------------
if (s = "") -- don't do that
----------------------
unless you know for sure that s is a shorter string than 32K.
Instead, test for a null length, it's safer.
----------------------
if (s's length = 0) -- do that instead
----------------------
Emmanuel
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.