HowTo : InsertAt inserts a object to the collection with null Owner
Article | 60000682 |
Type | HowTo |
Product | Engine |
Version | 6 |
Date Added | 10/24/2008 |
Submitted by | Heikki Sutinen |
Keywords | |
Subject
InsertAt inserts a object to the collection with null Owner
Summary
InsertAt inserts a object to the entities collection with null Owner, so the events are not fired for this object and the Handle of this is 0.
Solution
It is recomended not to use the InsertAt function. In order to add a new object to a collection then you should use the AddItem method. This will add the new object to the end of the list so if you want to change its order you can use the ChangeOrder or Swap.