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 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, as shown in the following image.
-
Enter
a name for the new procedure in the File name field.
-
Select Procedure
Viewer from the Create with drop-down list.
The Procedure Viewer opens.
-
Click
a component connector (yellow diamond) and select Other from
the menu.
The Text Editor opens.
-
Type
your text and close the Text Editor. When prompted to update the procedure
(FOCEXEC), click Yes.
-
Save
and close the procedure.