forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


string.dll / ListComp question...

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
MarkTrubo
Contributor
Contributor


Joined: 27 May 2001
Posts: 148
Location: Long Island, NY

PostPosted: Tue Nov 15, 2005 2:48 pm    Post subject: string.dll / ListComp question... Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
Dr. Dread
Professional Member
Professional Member


Joined: 03 Aug 2001
Posts: 1065
Location: Copenhagen, Denmark

PostPosted: Tue Nov 15, 2005 3:13 pm    Post subject: Reply with quote

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
View user's profile Send private message
MarkTrubo
Contributor
Contributor


Joined: 27 May 2001
Posts: 148
Location: Long Island, NY

PostPosted: Tue Nov 15, 2005 11:06 pm    Post subject: Reply with quote

Ya ya, I figured I could do that -- I just like using string as it does things some quick and simple. Laughing
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group