CB.Reset

This subroutine resets the current simulation, prompting you to confirm the reset. When you confirm, it closes all forecast windows, the trend chart, the overlay chart, and the sensitivity chart; then it clears results from the previous simulation.

This is very useful to use before calls to subroutines and functions that require that a simulation be reset, such as CB.Freeze, although you might prefer CB.ResetND because it resets automatically without user response. You can also call this subroutine to make sure that simulations start at Trial 1.

You do not have to run a simulation before you call this subroutine. However, it is convenient to run to ensure that no prior simulation results are around.

Note:

If you run a simulation using the CB.Simulation subroutine without resetting, Crystal Ball runs additional trials and adds the results to the existing results. This is different from the user interface command, which tells you it has reached the maximum number of trials and requires you to reset the simulation.