Manipulating ScriptLines (the Scripts Editor)

Navigation:  ScriptLines >

Manipulating ScriptLines (the Scripts Editor)

Previous pageReturn to chapter overviewNext page

 

To manipulate ScriptLines (add, delete, duplicate,move, disable), you can use either the ScriptLines Menu Items available from the Scripts Menu, or the ScriptLines toolbar.

 

The rules for manipulating ScriptLines are somewhat complex, but fortunately these rules are built into the ScriptLines toolbar.

 

Whenever you select a ScriptLine in the Scripts Editor, you will notice that some of the buttons of the ScriptLine Toolbar are disabled, preventing you from unknowingly "breaking the rules".

Adding

New ScriptLines can be added to either of the three mandatory ScriptLines FrontPages, MainGrid and BackPages. These additional lines can be nested hierarchically to construct complex Scripts. To add or insert a line, select the line which will be above the new line. Then click/select one of the 5 first buttons/menu items on the ScriptLines Toolbar or ScriptLines Menu Items.

Duplicating

To make a copy of the currently selected line, first click on the COPY button or menu item. Then select the line which will be above the copy. Click on the PASTE button. You can also use drag and drop.

Moving

To move the currently selected line, first click on the COPY button or menu item. Then select the line which will be above the copy. Click on the PASTE button. Finally go back and delete (see below) the original line. You can also use drag and drop.

Deleting

To delete the currently selected line, click on the DELETE button or menu item. If the selected ScriptLine has children (see previous section), then Q++ will give you the choice of either deleting only the line you selected or also all of its children. Note that in some cases, the ScriptLine rules of Q++ make it so that the only option is to delete all the children of the selected line.

Disabling

Disabling a ScriptLine tells Q++ to ignore the disabled line(s) without deleteing them. Visually, disabled lines are dimmed, and when selected, appear in grey rather than the Windows selection color (usually red or blue).

 

 

This is useful when you wish to test a particular option (for example a MiniCalendar setting), but do not wish to spend time waiting for Q++ to generate 30 pages that come from a QxdPages ScriptLine. Note that when you comment out a line, all its children are automatically commented out as well.

 

For more details on the specific rules governing the above manipulations, see the next section. Also, additional functions are available for QxdPages and DiaryGridLines and are discussed in the corresponding topics.


Topic 087129 updated on 12-May-2016.
Topic URL: http://www.qppstudio.net/webhelp/index.html?manipulatingscriptlines.htm