EGL Reference Guide for iSeries

Using the EGL templates with content assist

To practice content assist, do as follows:

  1. Open a new EGL file.
  2. On an available line, type P (for page handler or program) and press Ctrl + Space.
  3. When a pop-up is displayed, click an icon for the part to customize. Do either of these steps:

    The editor places a part template in your file.

  4. Customize the part.

    When the template is displayed, the editor highlights the first area where you need to type information; in this case, specify the part name. After you type, press Tab to highlight the next area where you need to type.

    You can use the Tab key repeatedly, and this use of the key is available until you reach the end of the file or until you change your in-file position in any other way.

  5. To insert a function into your program or page handler, type F (for function), then press Ctrl + Space. Although you can select a part template again, do as follows

    The ability to select a string is more useful in other contexts, such as when you want to type a variable name quickly.

  6. With the cursor at the end of the word Function, press Ctrl + Space and click an icon from the list.

    The editor places the function template in your file.

  7. Customize the part.
  8. As you develop your code, periodically press Ctrl + Space to understand the range of services that are provided.


Related reference
Content assist
Function part in EGL source format
PageHandler part in EGL source format
Program part in EGL source format


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]