
In our example, we're going to create a function that handles division and also handles the dreaded 'divide by zero' error.
Start by going to the main menu and clicking on Report > Report Properties...

Next, go to the code window and write the funciton.

Last, open up an expression window for a field and use the new function. In this case we're dividing summary fields.