Hi Mr.Coad,
Thanks for your response. However, I'm kind of confused for the
arraylist thing!
Do you know any link or resource on this. I looked at couple books they just
written some simple examples and don't talk about multi dimensional
arraylists.
You said that :
for (int i = 0; i < 20; i++)
alMain.Add(new ArrayList());
1 - will it add 20 rows to the array with 16 columns? (since as default it
assumes to create16 cells/columns when we don't specify the argument)
2 - what about an array like [100][100] ? should I increase the loop to 99 ?
Once again thanks for your help.
Newbie
Noah Coad said:
Simply have an ArrayList of ArrayLists. For example:
ArrayList alMain = new ArrayList();
for (int i = 0; i < 20; i++)
alMain.Add(new ArrayList());
- Noah Coad -
Microsoft MVP