Create an Alarm Object

About this task

Before you can perform any alarms and events calculations, you must create an alarm object.

Procedure

Add the following to the start of your calculation:
Set AlarmObj = new Alarm
Note: If you are using the calculation wizard to build a calculation, this code will be added for you.