Re: [Newbies] indexing into a collection

2016-07-26 Thread Ben Coman
Hi Joe, As Ron said, you should not be getting a copy. If you still have a problem, perhaps best if you post code for a complete example: * class definition (with just two instance variables) * instance variable accessor methods * instance creation & adding to collection * select statement *

RE: [Newbies] indexing into a collection

2016-07-26 Thread Ron Teitelbaum
Hi Joe, If the orderedCollection contains your object DrivingDays then select should give you the object and not a copy. You don't need to add it back to the collection just update the object. Check your code for anything that might be making a copy. All the best, Ron Teitelbaum