Previous Topic

Next Topic

Book Contents

Book Index

Report Designer Code Editor

Navigator > Setup > Report Designer > Design Window > [Select a component] > Double-click / (F2) / (Alt+Down) - OR -

Navigator > Setup > Report Designer > Property Editor > CodeEdit Open Code Editor (F2) button on a (Code) Property

Open the Code Editor by double-clicking a component in the Design Window, or select the component, press F2 or Alt+Down. You can also click the CodeEdit Open Code Editor (F2) button in a (Code) Property in the Property Editor. For report design, this button is located in Property Editor on the:

Enter MaxBasic code, or the value of an expression property, or select an item from a menu to insert in Code Editor at the pointer position. You can construct statements and expressions. Code Editor in Report Designer is a modal window. The code "belongs" to the band property or the expression being edited.

See also Script Editor and Script Editor Shortcut Keys. To change the font of components see Font Properties.

To access the Code Editor Context Menu, right-click in the script editor window, or press Shift+F10.

You can insert Automated code snippets in the Code Editor, see Automated Snippets.

Drop down menus

MenuPopup

Operators (Alt+O)

Lists MaxBasic operators.

MenuPopup

Objects (Alt+J)

Lists the objects and components available from the code. Components placed in the report will appear here. When you select a property it will appear in the code.

MenuPopup

Functions (Alt+F)

Lists the functions available. When you select a function that expects arguments, parentheses and commas for the arguments are shown with the pointer at the first argument, for example, InStr(|, )

Help for a function, detailing the arguments, is available from the final option in the menu, or by pressing F1 or selecting from the context menu (right click) with the cursor positioned in the function name in the editor.

MenuPopup

Components (Alt+C)

Lists properties of the components available.

MenuPopup

Automated (Alt+A)

Lists Automated objects. Documentation for an object is available from the final option in the menu.

MenuPopup

Procedures (Alt+E)

Lists Function and Sub procedures imported into, the script. Use Ctrl+E to open the Procedure List in a separate window.

MenuPopup

Help (Alt+H)

Access resources including descriptions, documentation and sample code.

 

Snippet (Alt+T)

Insert a code Snippet. Snippets are listed alphabetically, and the first line of each snippet is displayed.

Editor buttons

Set / Clear Breakpoint (Alt+B)

Set a code breakpoint on the current line. Click again to toggle to clear the breakpoint. You can also click to the right of a line to set or clear a breakpoint.

Hover the mouse over a breakpoint, then right-click to make a breakpoint unavailable, or access the Breakpoint Properties.

If a condition has been set for a breakpoint, it will be shown when you hover over the breakpoint.

Note: Breakpoints are not available in Expression Editor.

Save (F9)

Accept changes made to the code, and close the Code Editor window.

Cancel (Esc)

Ignore changes made and close the Code Editor window.

In This Section

Report Designer Objects

Font Properties