Mode Property

See Also Applies To Example Model

Returns the current simulation mode (Play, Pause, Halt) Read only VbtSimMode.

Remarks

This property can be useful for building a custom simulation interface in Excel.

Example

The following example halts the simulation if it is play mode, or starts the simulation if it is halt mode.

if World.Sim.Mode=vbtPlay then
    World.Sim.Halt
ElseIf World.Sim.Mode=vbtHalt then
    World.Sim.Play
End If