Amos Professional Manual  Contents  Index

Interface Language


VertText
Interface instruction: display vertical text
VT x,y,'text',colour

The VertText command is used to display a column of vertical text using the specified colour index number, starting at your chosen coordinates.

Labels and Tests
The AMOS Professional Interface also supports a number of program control instructions, allowing simple tests to be performed and jumps to be made to various routines. These controls make it easy to create complex multi-level user interfaces.

LAbel
Interface instruction: create a simple label
LA label;

The LAbel command is used to define a marker label in an Interface program. This can them be employed as the target destination for a JumP or JumpSub command, which are the Interface's equivalents to the familiar GOTO and GOSUB operations in normal AMOS Professional programs. It can also be used as an entry point for the DIALOG RUN instruction.

Several complete dialogue boxes can be installed into the same definition string, if required.

Unlike conventional AMOS Professional programs which recognise any characters for labels, Interface labels are referred to by numbers only, ranging from zero up to 65535. If a newly defined label already exists, an error message will be generated. Interface labels are defined in the following manner:

X> LA 10; set up label number 10

JmP
Interface instruction: jump to an Interface program label
JP label;

The JumP command transfers control to the Interface instructions that commence with the selected label number. This label must be defined elsewhere in the Interface program. The JumP instruction cannot be used inside any of the routines held in square brackets of a BUtton command. It is used with the single parameter of the target label, like this:

X> JumP 10;

Interface labels are also used to mark the start of various subroutines, which are entered and left as explained next.

Back    Next
09.02.06