Thanks for the advice. I'm certainly open to learning new tips.
What I am doing here is, on program start, I have a sub that reads a long list of data into the array list (i'm working on an IM client of sorts, so in this case it would be user id numbers). Each id number in its own index, and I'm not familiar yet w/arraylists, so I was going to look into also seeing if there was a Key or Tag variable available also for each index, so i could stick the user's name next to the id number as well.
So when the program loads and reads/stores the data in the text file, it's essentially creating a live database in memory which can be altered and used on the fly (renaming a user, etc. etc, we all know how IM clients work

)
It also needs to contact a server every 5 minutes or so and pass all of these id numbers to it so that the server can return the status of the user, so that I can again do more things with that info.
As it is now, the arraylist matches exactly the format of the array needed by the server to pass all of the id's as parameters.
I know that I technically could just keep saving/reading the info from the original text db, but I feel that all of that file i/o compared to in memory would be kind of ridiculous in many ways.
I also am not really familiar with passing objects like an arraylist and how it would work.
Last thing, I'm still not sure of what you meant in response to my original question, to be able to read the contents in treeview form, of the arraylist that has been publicly declared, from any sub/function. Can you clear things up a bit on that?
Thanks