S
stainless
I am not very experienced with C# and have a question regarding
storing and accessing data in an array list.
Whilst reading a datarow sorted on 3 fields (thID, dthID and locID -
all 3 are type int), I need to store unique combinations of the 3
values in an arraylist, and then be able to access the combinations
later. I am fine with the reading of the datarow and identifying the
unique combinations, but am struggling with how I would then store
these in the array list.
For example:
thID dthID locID
----- ------ -------
1 1 1
2 1 1
2 1 2
2 2 2
2 4 2
3 4 3
How would I define the arraylist, add the data each time and then
access these values later?
Cheers
Mark
storing and accessing data in an array list.
Whilst reading a datarow sorted on 3 fields (thID, dthID and locID -
all 3 are type int), I need to store unique combinations of the 3
values in an arraylist, and then be able to access the combinations
later. I am fine with the reading of the datarow and identifying the
unique combinations, but am struggling with how I would then store
these in the array list.
For example:
thID dthID locID
----- ------ -------
1 1 1
2 1 1
2 1 2
2 2 2
2 4 2
3 4 3
How would I define the arraylist, add the data each time and then
access these values later?
Cheers
Mark