| View previous topic :: View next topic |
| Author |
Message |
MarkTrubo Contributor


Joined: 27 May 2001 Posts: 148 Location: Long Island, NY
|
Posted: Tue Nov 15, 2005 2:48 pm Post subject: string.dll / ListComp question... |
|
|
This may be a string question or maybe there is another way. Lets say I have a client e-mail list that looks like this:
[email]|[name]
bob@test.com|Bob Smith
jim@anyco.com|Jim Jones
ralph@yahoo.com|Ralph Myguttsup
And I have a 2nd list of just e-mail addresses like this:
harry@aol.com
barney@rubble.com
jim@anyco.com
sara@hotmail.com
Any I want to remove any item from the client list that contains an item in the remove list. I can do this if the first list is just e-mail addresses, but am not sure how to do it when the first list also has another field of info. |
|
| Back to top |
|
 |
Dr. Dread Professional Member


Joined: 03 Aug 2001 Posts: 1065 Location: Copenhagen, Denmark
|
Posted: Tue Nov 15, 2005 3:13 pm Post subject: |
|
|
Well, don't do it with ListComp.
Cycle through the items in list 2, check with @match if @item(2)| is in list 1.
If yes then remove the item from list 1. I'd parse the @item(1) first to check that part1 is identical to @item(2)
Greetz
Dread _________________ ~~ Alcohol and calculus don't mix... Don't drink and derive! ~~
String.DLL * advanced string processing |
|
| Back to top |
|
 |
MarkTrubo Contributor


Joined: 27 May 2001 Posts: 148 Location: Long Island, NY
|
Posted: Tue Nov 15, 2005 11:06 pm Post subject: |
|
|
Ya ya, I figured I could do that -- I just like using string as it does things some quick and simple.  |
|
| Back to top |
|
 |
|