CBBeforeSimulation

Public Function CBBeforeSimulation() As Integer
  the code is here
End Function