Prod.: Engine, ver.: 6, ID: 60000682, HowTo : InsertAt inserts a object to the collection with null Owner

HowTo : InsertAt inserts a object to the collection with null Owner

Article60000682
TypeHowTo
ProductEngine
Version6
Date Added10/24/2008
Submitted byHeikki 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.