G
Guest
Hi, I'm using an array list as the collection for my indexer (_alPeople).
When i try to set _alpeople to a value at a certain index, I get an error. I
can't simply add the value as it needs to be at an index set by the user.
the Set statement is this:
_people[index] = value; or even _people.Insert(index,value);
but these throw 'ArgumentOutOfRange' exception stating: Must be non-negative
and less than the size of the collection.
How can I use an array list & keep track of the index the user married to
the value?
Thanks for any tips on this
Ant
When i try to set _alpeople to a value at a certain index, I get an error. I
can't simply add the value as it needs to be at an index set by the user.
the Set statement is this:
_people[index] = value; or even _people.Insert(index,value);
but these throw 'ArgumentOutOfRange' exception stating: Must be non-negative
and less than the size of the collection.
How can I use an array list & keep track of the index the user married to
the value?
Thanks for any tips on this
Ant