G
Guest
Hi,
I have an arrayList that holds an ArrayObject with (Qty & ItemCode).
e.g.
arrayList.Add(New ArrayObject(Qty, ItemCode)
However, I want to search the arrayList and check if the ItemCode already
exist on the arrayList, then simply increase the Qty by 1.
For example:
I have in my arraylist:
index 0, object {1, "1111"}
index 1, object {1, "2222"}
index 2, ojbect {3, "7777"}
Now i want to add another object say {4, "2222"} to the arrayList, but
instead of adding it as NEW item to the list, I want to able to find the
index and replace the Qty, so index 1, will now looks like {5, "2222"}.
I hope u see what i mean....
Any help is appreciated, Many thanks in advance !
Jon
I have an arrayList that holds an ArrayObject with (Qty & ItemCode).
e.g.
arrayList.Add(New ArrayObject(Qty, ItemCode)
However, I want to search the arrayList and check if the ItemCode already
exist on the arrayList, then simply increase the Qty by 1.
For example:
I have in my arraylist:
index 0, object {1, "1111"}
index 1, object {1, "2222"}
index 2, ojbect {3, "7777"}
Now i want to add another object say {4, "2222"} to the arrayList, but
instead of adding it as NEW item to the list, I want to able to find the
index and replace the Qty, so index 1, will now looks like {5, "2222"}.
I hope u see what i mean....
Any help is appreciated, Many thanks in advance !
Jon