Hi Angela,

Is your app asp.net? if so you could use the Session object to store
per client information.

If not, then you can do what you are doing now, but maybe put all
information of a single client into a single entry in the
arraylist/hashtable.
So you only need to the lookup once.

Thus instead of having three hashtables storing Data1, Data2, Data3 in
them respectively, create a DataClass which stores Data1, Data2 and
Data3. Then store this item DataClass into just one hashtable.

HTH
// Ryan 

On 5/13/05, Angela Tocco <[EMAIL PROTECTED]> wrote:
> Hello and happy Friday,
> 
> I have an area in my application that lets my clients login. An ArrayList
> holds that clients information, and there are several different types of
> information I collect.
> 
> Right now I have about three ArrayLists that are used to hold different
> types of information and this is for all my clients that login.
> 
> My question is this, when the client logs in couldn't I just create a new
> instance of an ArrayList and just use one ArrayList for all this clients
> information, then when another one logs in create another one for their
> information, so on and so forth?
> 
> What I do now when retrieving this information is query for the clients
> name arraylist.ContainsKey("clientname")..but I do that with three other
> ArrayLists too just to get information.
> 
> I would be better I could just create a new instance of an ArrayList and
> and name it whatever the clients login is 'Client1' then reference that
> ArrayList when querying.
> 
> Is this possible?
> 
> If I declare an ArrayList in Declarations: ie ArrayList arrList1;
> 
>  Could I create another instance of arrList1 and rename it to arrClient1
> and it be a whole new arraylist?
> 
>  Hope this makes sense.
> 
>  Thanks and have a great weekend,
> 
>     Steve Welborn
> 
> ===================================
> This list is hosted by DevelopMentor(r)  http://www.develop.com
> 
> View archives and manage your subscription(s) at http://discuss.develop.com
>

===================================
This list is hosted by DevelopMentor�  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to