"Del" char and removing item from a list
"Del" char and removing item from a list
- Subject: "Del" char and removing item from a list
- From: FlyMac <email@hidden>
- Date: Fri, 26 Jan 2001 17:41:56 +0100
Hi everyone,
With your precious help I pushed my ircle script a lot forward. Now I'd like
to ask you two questions, I really tried to find a solution, in the ASdoc,
complement docs, etc but I didn't find it out.
I'm scripting with akua sweets for write/read to file.
Ok, I have a text file with 3 lines in it (for example):
--
From Nick1 : hello this is a test
From Nick2 : come on let's test again ;)
From Nick3 : yep this is a test, too.
--
And of course I have to delete the second line so that line 3 comes directly
under line 1. I can make the line to " " but it doesn't remove the line. How
can I do that?
Next question: I've been surprised to see how it's difficult to remove an
item from a list. I have a list with some strings in it (ex: {Nick1, Nick2,
Nick3...}) and I just want to erase Nick2 so that the list becomes {Nick1,
Nick3}. For info I have to get the Nick to remove from a string. I tried
some things like that:
set NickList to every item of NickList whose item is not NickList
but unsucessful.
Thanks a lot for reading this e-mail and even more if you have a solution,
*lol* =)
Kevin