#

# LogiView

## How to Add Functions and Commands Using the Syntax Assistant

| ### What to do:
| As a prerequisite for this example, you must have added the comment line as described in "How to Add Functions and Commands".
| Change to Insert mode with the button .
| Enter 20 in the Line field.
| Click the Statement field.
| Click the button to call up the syntax assistant.
| Select Quick info > File interface > open({STR_EXPR},{"r"|"w"|"a"}).
| A syntactically correct function is added. Instead of the not yet defined variables and options explanation fields are displayed and must be replaced.
| Explanation Fields
| Click the explanation field {INT_VAR} and then click the button to call up the Syntax Assistant. A selection window containing a list of all integer variables (assigned to the DokuProzedur procedure on a system, logic model or procedure level is opened.
| Select the DOKU_INT_1 variable and press ENTER to save the entry.
| Click the explanation field {STR_EXPR} and then click the button to call up the Syntax Assistant. A menu with all entry options is displayed.
| Select Text from this menu.
| Replace the three points with \tmp\test.file.
| Please note that string expressions must be enclosed by high colons.
| Click the explanation field {"r"|"w"|"a"} and then click the button to call up the Syntax Assistant. All unmarked options are deleted.
| If the wrong option has been selected, just click the button , to undo the changes.
| To save the entry click the button .
| The list should now look as follows:
| Additional Steps