Monday, December 10, 2001 01:48 PM
I used to get the same problem some months ago.
Here is a quick solutions for Arrays of Hashtable Arrays:
First of all, create an ArrayList (from java.util class), then an hashtable.
- ArrayList itemid = new ArrayList();
- Hashtable items = new Hashtable();
Now you should fill the ArrayList with your items ID or whatever it is.
After, you have to fill the hashtable.
Fill them like this:
Now you can get whatever you want using this way:
the last sentence gets all the Price for all items. Of course
you have to loop and to understand that "inti
" is a counter... and "price
" is your name (NAME_HERE) you put before in your hastable.
Hope this helps.Long live to JGuru
Horus Technologies Inc.http://www.horustechnologies.com