Insert Method

See Also Applies To Example Model

Adds an object to the collection at a specified index position.

object expression.Insert (Object, [BeforeIndex])

object expression    Required. An object expression that evaluates to an object in the Applies To list.

Object    Required. Either a Bot or Cell, depending whether the object expression evaluates to a Group or Region.

BeforeIndex    Optional Long. The index to insert the object. Default = 1.

Example

The following example inserts a Bot into the 5th position within a Group object.

BlueGroup.Insert Bot, 5