Creating a Text File or a Procedure Component as Text
You can use the Developer Studio text editor to create
a text file from scratch using any language. If the file you create
contains an executable procedure, you can run it directly from the
text editor. See Running a Procedure From the Editor.
You also can create a text component in a Procedure using the
Other component.
x
Procedure: How to Create a Text File
-
Choose TED (text
editor) from the Command menu.
-
In the
Open dialog box, enter a new file name in the File name box. For a
file other than a procedure (.FEX) or a Master File (.MAS) include
an extension.
-
Choose
a file type from the File of type list. For a procedure (.FEX) or
a Master File (.MAS), the file extension is picked up from this
selection.
-
Click
the Open button. The text editor opens.
Type your text and close the text editor. When prompted,
save your file.
The
new file is saved in the selected folder with the appropriate extension.
x
Procedure: How to Create a Text Component in a Procedure
-
Create
a new procedure:
- With the Procedures
folder highlighted, select New from the File
menu.
or
- Right-click
the Procedures folder and select New from
the pop-up menu, then select Procedure.
The
Add Procedure dialog box opens.
-
Enter
a name for the new procedure in the File name field.
-
Select Procedure
Viewer from the Create with drop-down list.
The Component Connector toolbox opens.
-
Click
and hold a component connector (yellow diamond), then drag the arrow
pointer to the Other button on the component toolbar. The text editor opens.
-
Type
your text and close the Other component. When prompted to update
the procedure (FOCEXEC), click Yes.
-
Close
the procedure.