Previous Topic

Next Topic

Book Contents

Book Index

Report List Editor

Accredo > Script > Report List > Edit (F11) button

Edit options for reports in a report list using MaxBasic code.

The Report List Editor displays relevant options set in the Report Selections form, when the Report was added to the list. These can be changed in the Report List Editor window.

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

Drop down menus

MenuPopup

Operators (Alt+O)

Lists MaxBasic operators.

MenuPopup

Objects (Alt+J)

Lists the objects and components available in the code. When you select a property it will appear in the code.

MenuPopup

Functions (Alt+F)

Lists available MaxBasic functions. 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(|, ). This shows that the Instr function requires two arguments, one before and one after the comma.

Help for a function, detailing the arguments, is available from:

  • The final option in the menu,
  • Pressing F1 - OR -
  • Selecting from the context menu (right-click) with the cursor positioned in the function name in the editor.

MenuPopup

Automated (Alt+A)

Lists Automated objects. Documentation for each object is available from the final option in the menu. You can insert an object by clicking on it.

MenuPopup

Procedures (Alt+E)

Lists Function and Sub procedures defined in or imported into the script. Press Ctrl+E or select from the context menu (right-click) 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

ScriptCheck

Check Code (Alt+C)

Checks the code compiles correctly, without running the script.

Run (Alt+R)

Runs the script. To terminate a running script, press Alt+F1. The line and character at which the script was terminated will be displayed.

Print (Ctrl+P)

Print the code.

Save... (Ctrl+S)

Save code back to the Report List.

An example of an AR Aged Trial Balance report is:

Report = CreateObject("Accredo.ARAgedBalancesReport")

Report.Layout = "Aged Trial Balance"

Report.Destination = "Excel worksheet"

Report.Period = PeriodName(CurrentPeriod("AR"))

Report.Displayinactive = False

Report.Run