The Code Editor is the place where you actually write and modify RAP code.

Whatever the currently selected item is (event handler, procedure, function, variable declarations, etc.), only the code for that item is displayed in the Code Editor.

With an item is selected, the editor will either contain the code implementation, or will be blank (if no implementation exists). If no implementation exists, you can create one by clicking in the editor. You can then enter code by either typing or by dragging items from the
Code Toolbox
and dropping them into the editor. If an item is dropped into the editor over a section of selected code, the selected code will be replaced.

The Code Editor's context menu contains the following items:

New
New has the same effect as clicking in the Code Editor. It is only enabled if there is no implementation for the item currently selected in the Code Explorer.

Compile
Compile activates the RAP compiler to attempt to compile the current procedure and any procedures upon which the current one depends.

Save
The Calc workspace maintains an intermediate buffer for the Code Editor. Selecting Save will commit the current contents of the Code Editor to the buffer; it will not save the entire report. Selecting Save has the same effect as navigating away from, and then returning to the current procedure.

Revert
Use Revert to replace the contents of the Code Editor with what is currently contained in the code buffer. This has the effect of removing all changes since the last save.

Delete
Select Delete to remove the current procedure entirely.