Author: Clive Whitear
Date: May 13th 1998
Version: ER4 release
Program
0x10000074
Program: Quick start
OPL OPO translate compile run programming language
Program is a text editor for writing, translating (compiling) and running OPL programs.
When Program is first started you see:
PROC :
ENDP
These are the "keywords" that mark the start and end of an OPL "procedure". Type your program as a list of "statements" between the keywords.
To create an OPL program:
1.	Write the program, using the text formatting and indenting features.
2.	Translate the program using the button on the Toolbar or Translate from the Tools menu.
If an error is found during translation, the cursor goes to the point in the program where the error is found and an error message is given.
3.	When the program translates without errors, a dialog with the option to run the program is displayed.
The translated (executable) file will be given the same filename as the source file, but will have the filename extension .OPO (this is displayed on the System screen).
•	You can also run an OPL program by selecting Run program on the Tools menu. A translated file can be run by selecting it in the System screen, then tapping on it or pressing the Enter key.
If you have an old OPL program you want to use, create a new file and "import" the old file into it (do this by selecting Import text file from the More cascade on the File menu).
Combining files in Program
OPL importing exporting merge in export as text import text ascii
You can include another OPL file or an ASCII text file into the current OPL file. E.g. you may want to include a previously written program.
To insert smaller pieces of an OPL file, use the normal copy and paste commands on the Edit menu.
To include an entire OPL file, you must first convert the file to ASCII format. To do this:
1.	Open the OPL file that you wish to convert.
2.	Select Export as text from the More cascade on the File menu. Select the folder you want to export the file to and type in the name you want to use.
To import an ASCII file into the current OPL file:
1.	Open the OPL file that you wish to add the other file to.
2.	Move the cursor to the point where you want to insert the other file.
3.	Select Import text from the More cascade on the File menu and select the file you want to import.
Indenting text (Program)
OPL tab stop indentation
Normally the text you type will be automatically indented, using a tab positioned 2 characters in from the left. Any additional tabs inserted will be spaced at further intervals of 2 characters. To change this, select Indentation on the Format menu.
•	To stop automatic indenting, remove the tick from the indenting box.
•	Set the distance you want between tab positions.
Formatting text (Program)
OPLtypestyle type style typeface type face font bold
You can format the text in an OPL file for display purposes; this does not affect the translated (complied) program.
To change the formatting (font, letter size, bold emphasis and text colour) of all the text in the OPL file:
•	Set the font using Font on the Format menu, and then select the font, letter size etc.
To change the bold emphasis of the entire file, press Ctrl+B.
•	Normally you can only choose monospaced fonts; but you can change this using the Preferences command from the Tools menu.