DTV_Janus Posted July 2, 2004 Share Posted July 2, 2004 Ok im not sure if this is possible, but lets see if someone can tell me... I have an access file with a table called Routers. That table looks like this: ID | Router | IP | SNMP | --------------------------------------------- 22 | Paris | 10.0.0.2 | public | 23 | Berlin | 10.0.0.3 | public | This list is alot longer, but this will do for now. OK what i want to do, is take each column from this table, and assign every entry into an array, so that my Router_Array would look like... Router_Array(Paris, Berlin) IP(10.0.0.2, 10.0.0.3) and so on for the other columns. Is this possible? How do i go about doing this? I'm trying to write this program for my internship and im stuck on this part, so any help would be awsome! :jump: Link to comment Share on other sites More sharing options...
0 John Veteran Posted July 2, 2004 Veteran Share Posted July 2, 2004 Make a router class and add the info from each row into an instance of that class. Then add the instances to an array of router classes (Y) Link to comment Share on other sites More sharing options...
0 DTV_Janus Posted July 2, 2004 Author Share Posted July 2, 2004 Woah woah, slow down there, can you be a little more descriptive? I understand what you are saying, but i dotn know how to get the individual row information into a variable :blink: Link to comment Share on other sites More sharing options...
0 azcodemonkey Posted July 2, 2004 Share Posted July 2, 2004 What language? Link to comment Share on other sites More sharing options...
0 DTV_Janus Posted July 2, 2004 Author Share Posted July 2, 2004 Visual Basic Link to comment Share on other sites More sharing options...
0 azcodemonkey Posted July 2, 2004 Share Posted July 2, 2004 I'm too rusty at it to be of any help. :( Link to comment Share on other sites More sharing options...
Question
DTV_Janus
Ok im not sure if this is possible, but lets see if someone can tell me...
I have an access file with a table called Routers. That table looks like this:
ID | Router | IP | SNMP |
---------------------------------------------
22 | Paris | 10.0.0.2 | public |
23 | Berlin | 10.0.0.3 | public |
This list is alot longer, but this will do for now.
OK what i want to do, is take each column from this table, and assign every entry into an array, so that my Router_Array would look like...
Router_Array(Paris, Berlin)
IP(10.0.0.2, 10.0.0.3)
and so on for the other columns. Is this possible? How do i go about doing this?
I'm trying to write this program for my internship and im stuck on this part, so any help would be awsome! :jump:
Link to comment
Share on other sites
5 answers to this question
Recommended Posts