Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


translation table

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,61058
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> translation table
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 translation table - 6/4/2008 10:16:26 PM   
  SirBlade

 

Posts: 28
Score: 0
Joined: 1/11/2006
Status: offline
I got a table with 2 collums and a very large nr of rows, all values are unique. The table looks a bit like this:

abc,123
def,456
ghi,789
etc...

I want to make function where i use a value from the first collum as input and get the value from the 2nd collum as output. Which technique do I need to use to accomplish this. I'll need to do around 15000 lookups so I don't want to work through a .csv for every conversion.
 
 
Post #: 1
 
 RE: translation table - 6/5/2008 12:18:02 AM   
  ebgreen


Posts: 4613
Score: 31
Joined: 7/12/2005
Status: offline
Read the entire data structure into a dictionary.

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to SirBlade)
 
 
Post #: 2
 
 RE: translation table - 6/13/2008 4:11:51 AM   
  SirBlade

 

Posts: 28
Score: 0
Joined: 1/11/2006
Status: offline
Thx, the dictionary object worked perfectly. Here's the code I used for my test-application, maybe someone can use it.


      

(in reply to ebgreen)
 
 
Post #: 3
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> translation table Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts