Clone Method

See Also Applies To Example Model

Creates one or more identical copies of the object.

object expression.Clone ([HowMany])

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

HowMany    Optional Long. The number of new objects to create. Defaults to 1.

Remarks

Bot objects that are created using the Clone method inherit all of the properties of the parent Bot except for the Age property. The Age property is set to zero for the new Bot objects.

The method returns a single Bot object when number=1, and a Group when number>1.

Example

The following example creates 100 new Bot clones and assigns them to a Group called "BlueTeam".

Set BlueTeam = Bot.Clone 100