GroIMP Module 1 English
Spoken text
In the previous unit 1, we learned all about the essential elements of the RGG user interface of GroIMP in a short overview. Now, we’re going to regard intensively the Editor and the Messages Window.
The Editor contains the model code that was already mentioned. The code can be directly changed, saved or compiled. The menu bar provides a diverse choice of different commands and options which are too many to describe all of them in this unit and module. The opportunities to open, load, save and close new editor windows and the opportunities to copy, cut and paste contents or the opportunities to print and to undo alterations in the model code are probably the most important. The managing of single RGG Files is also easy within the Editor.
The most important commands are additionally located in form of the symbols below the menu bar.
The save command – depicted as a floppy disk – is the most powerful command because it’s used to save and to compile the model code.
We’re going to test this by making a valid modification – without explaining the meaning of it – in the model code. We’re changing the attribute of the module A. After pressing the save symbol, you can realize based on the changed time in the Messages Window and the message “Compilation of model.rgg was successful” that the compilation of the model was done without errors.
To illustrate the possibilities of the Messages Window we’re going to modify something in the syntax of the model code. We’re deleting a semicolon at the end of a line which will provoke an error.
After pressing the save symbol, the message in the Messages Window is appearing that the model couldn’t be opened which means that the code couldn’t be compiled correctly. You can also read the cause of the error. A syntax error is shown in the relevant line 9 because the programme expects a semicolon instead of a square bracket. This is exactly the error which we provoked.
The last step is to undo the syntax modification and to compile the model again.