J
Jerry S
Hi
I've got an arraylist of integers.
I want to be able to remove an integer from the list using a method
like this:
public void ArrayListRemove(int indexnum)
{
ArrayList.Remove(ArrayList.IndexOf(indexnum));
ArrayList.TrimToSize();
}
It isn't working. I can't figure out why...
I seem to be getting an Invalid Object reference error when it runs
(that's what the debugger says, anyway!).
Any advice will be greatly appreciated!
Thanks.
Jerry
I've got an arraylist of integers.
I want to be able to remove an integer from the list using a method
like this:
public void ArrayListRemove(int indexnum)
{
ArrayList.Remove(ArrayList.IndexOf(indexnum));
ArrayList.TrimToSize();
}
It isn't working. I can't figure out why...
I seem to be getting an Invalid Object reference error when it runs
(that's what the debugger says, anyway!).
Any advice will be greatly appreciated!
Thanks.
Jerry