WhereScape RED includes a script editor which allows the maintenance of any host scripts within the data warehouse. The editor is invoked by double-clicking on a script name in the left pane or by right-clicking the script name and then selecting Edit the Script from the context menu.
Similar to the procedure editor, the script editor includes the following features:
Indenting code
The tab character inserts four spaces into the text. A shift/tab removes four spaces.
Cut, Copy, Paste and Delete
The normal Windows cut, copy, paste and delete functions are available either through the toolbar or via the right mouse click context menu.
Indenting a block of text
A selected block of text can be indented by four spaces by depressing the tab character. Each tab will be indented by a further four spaces. A shift/tab will remove four spaces from the front of each line in the selected block.
Viewing other scripts
During the editing process it is possible to pop up a window containing other scripts. This window allows cut-and-paste operations. In such a way it can be used as a work area or as a source of code. Select the Tools > View Script or Template menu option to bring up the viewer window.
Several drop-down list boxes can be chosen from. Once an item is selected the viewer loads the code and moves to the right side of the edit window. The various options are:
Once an item is chosen, the viewer appears on the right side of the edit window. The viewer or the main edit window can receive the focus by clicking the mouse within the appropriate window. Code can be cut from one window and pasted into the other. Any changes made in the viewer window cannot be saved.
Editing, deleting, or compiling Locked for Edit or opened procedures/scripts
|