CellHere Method

See Also Applies To Example Model

Returns the Cell object located at a given distance and angle from the object.

object expression.CellHere([Distance], [Angle])

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

Distance    Optional Double. The distance to the location. Defaults to 0.

Angle    Optional Double. The angle to the location relative to the current heading. Defaults to 0.

Example

The following example uses the CellHere method to turn the color of the Cell at the Bot object's current location to red.

Bot.CellHere.Color = vbtRed