Returns the current simulation mode (Play, Pause, Halt) Read only VbtSimMode.
| VbtSimMode can be one of the following: |
| vbtHalt Simulation is halted |
| vbtPlay Simulation is playing |
| vbtPause Simulation is paused |
This property can be useful for building a custom simulation interface in Excel.
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