4. Program Editor: Alarm Tools
The Program Editor provides tools to facilitate working with alarms in a script, as follows.

1 | Generate |
The Generate tool in the Program Editor is available for $CIMBASIC alarms.
- Place the insertion point in the script where the selected alarm will be inserted.
- Click Tools>Alarms>Generate on the Program Editor menu bar.
A Generate Alarm dialog box opens.
- Fill in the fields for a $CIMBASIC alarm in the Generate Alarm dialog box.
Note: The fields in the Generate Alarm dialog box correspond to the
AlarmGenerate
(method) syntax.

- Click OK.
Result: The Program Editor inserts the specified AlarmGenerate (method) code at the location of the insertion point in the script.

2 | Update |
The Update tool in the Program Editor is available for any CIMPLICITY alarm.
- Place the insertion point in the script where the selected alarm will be inserted.
- Click Tools>Alarms>Update on the Program Editor menu bar.
An Update Alarm dialog box opens.
- Fill in the fields in the Update Alarm dialog box.

Note: The fields in the Update Alarm dialog box correspond to the
AlarmUpdate
(method) syntax.
- Click OK.
Result: The Program Editor inserts the specified AlarmUpdate (method) code at the location of the insertion point in the script.
