The program editor provides context-sensitive help for the following source-code elements:
Statements (for example, WRITE
)
System variables (for example, *USER
)
System functions (for example, COUNT
)
Parameters (for example, AD
)
The help information includes syntax explanations and programming advice.
To invoke the help function for source-code elements
Position the cursor on the keyword within a syntax element for which you require help and press F1.
The Help for Natural window appears which contains the help information about the specified keyword.
If the specified keyword refers to several help topics, a dialog box appears where you can select a topic from a list.
If the specified keyword forms part of a complete statement (for
example, the keyword TOP
in the statement AT TOP OF
PAGE
), the help function tries to identify the statement that contains
the keyword:
If the result is unambiguous (that is, a single complete statement is found), help information is displayed for that particular statement.
If a keyword is found which is used in several statements (for
example, the keyword IF
), a dialog box appears where you can
select a statement from a list of all statements that begin with or contain the
specified keyword.
If no complete statement can be found (for example, if you have only
typed in the word DEFINE
and pressed F1 before typing
in the full statement) or if the keyword is used in several statements, a
dialog box appears where you can select a statement from a list of all
statements that begin with or contain the specified keyword.