Re: Why save text item delimiters? Philosophical question....
Re: Why save text item delimiters? Philosophical question....
- Subject: Re: Why save text item delimiters? Philosophical question....
- From: John Delacour <email@hidden>
- Date: Mon, 16 Jun 2003 08:38:14 +0100
- Mac-eudora-version: 6.0b20
At 8:05 pm -0700 15/6/03, Michelle Steiner wrote:
On Sunday, June 15, 2003, at 03:09 PM, David Crowe wrote:
nother way to look at it is to pose the question: "Would you use
the text item delimiters without setting them to the needed value
first?"
Um, because some other part of the code had set them, and expects
them to be what they were set to. If you change them underneath,
you should put them back the way you found them.
If, as David asks, you never use text item delimiters without setting
the value first (and he might, and should, have added
_IMMEDIATELY_before_using_them_), then it makes no difference.
set my text item delimiters to ""
doThis()
text items of "two words" is words of "two words"
on doThis()
set my text item delimiters to space
end doThis
--> true
doThis()
set my text item delimiters to "" -- and then immeditately...
text items of "two words" is words of "two words"
on doThis()
set my text item delimiters to space
end doThis
--> false
JD
.
_______________________________________________
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.