Update Method

See Also Applies To Example Model

Updates the Screen object display.

object expression.Update

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

Remarks

The Update method is automatically executed at the end of the OnSimBegin, OnSimStep, and OnSimEnd events. Use the Update method if an update to the Screen object display is desired at any other time during a simulation.

If the SuppressUpdate property of the Screen object is set to True, then the Update method does not update the display.

Example

The following example uses the Update method to update the display during the execution of a For-Next loop.

For i = 1 to 10000
     Bots.TurnRand -15, 15 
     Bots.Step
     World.Screen.Update 'update the display now
Next i