
219
Swap back to the
Program
Catalog
, position the highlight on the program
.MSG.SV
and
the program. Apart from the screen going blank for a
moment nothing will appear to happen, but in fact the link to the normal
VIEWS
menu which ‘Message’ inherited from its parent aplet Function has
been severed and a link to the new menu you built in
.MSG.SV
has been
substituted. Press
VIEWS
to check.
Providing that you have done everything correctly, this is now the end of the
process - the aplet is now ready to be run. In the
APLET
view, make sure the
highlight is still on the aplet and press
or
ENTER
to run it. If you get an
error message at any time then you may have to
and
the
program.
When you do this, the aplet will run the
program .MSG.S which will display a
MSGBOX.
The line in the SETVIEWS command
controlling this was:
"Start";".MSG.S";7;
Since the triple ends with a view number of 7,
this means that after the program terminates
(when you press
), the
VIEWS
menu will
display again.
If you choose the option ‘Message 1’, then this
will cause the program .MSG.1 to be run,
displaying the screen on the right. This line in
the
SETVIEWS
command also terminated with
a view number of 7 so when you press
the
VIEWS
menu will display again.
The program line for this was:
MSGBOX "Hello world! 3+4 = "3+4:
Items in quotes are displayed as they appear, while expressions outside
them are evaluated before being displayed. Expressions can include
variables and calls to functions.