Using Enterprise 6’ macro Language, a Enterprise 6 shell can be constructed in the same way as some DOS users use a DOS Shell on their machines. An example of this, the Tutorial shell, is as follows: Execute (Macro Load ("~C@"))
Execute (OK:=1)
While (OK=1)
Execute (Macro List ("Select a macro to Play"))
If (OK=1)
Macro (vLCF{vLCS})
End if
End while
The macro first calls the Enterprise 6 procedure ‘Macro Load’, which takes one parameter containing the macro code for which it is to query. In the Tutorial macro, all macros whose code begins with ‘~C’ will be found (this is a prefix used for Chapter headings). The macros found will be displayed in a list in macro Code order and a While loop is used to repeat the display of the list until the user presses [Cancel]. The procedure ‘Macro List’ is used to display the list, with its one parameter containing the Title to appear above the list. The user then clicks on the macro that he or she wishes to be played. The list of macros is stored in the array ‘vLCF’, while the element selected is element number ‘vLCS’ in the array.
On returning to the list of macros after having selected and played one, a • appears to the left of its name.
If it is intended to construct a shell macro, or use the Tutorial macro, they can be defined as start-up macros for the appropriate user(s). In such a situation, if the user cancels them when starting up, they can always be restarted later, probably using the <Command-Shift-m>/


