Creating a Text File or a Procedure Component as Text

How to:

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.


Top of page

x
Procedure: How to Create a Text File
  1. Choose Text Editor from the Command menu.
  2. 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.
  3. 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.
  4. 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.


Top of page

x
Procedure: How to Create a Text Component in a Procedure
  1. 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.

  2. Enter a name for the new procedure in the File name field.
  3. Select Procedure Viewer from the Create with drop-down list.

    The Procedure Viewer opens.

  4. Click a component connector (yellow diamond) and select Other from the menu.

    The Text Editor opens.

  5. Type your text and close the Text Editor. When prompted to update the procedure (FOCEXEC), click Yes.
  6. Save and close the procedure.

WebFOCUS