Content Assist

Using Content Assist

In this section you will use content assist to call directives, methods and routines as well as view context information for ProvideX elements.

Open the DemoApp/src/prog/RWuserlogic.pvc.pvt file in the ProvideX editor. In the Outline view, double-click the On_Create Line Label to highlight the On_Create routine in the ProvideX editor.

When editing a file in the ProvideX editor, there are several triggers that will activate content assist.

  1. Add a new line at the beginning of the On_Create routine.

    Type the "?" character and pause. The completion proposal for the "?" character will appear. The completion proposal for the "?" character is a simple proposal with a brief description of the PRINT directive:


    Select the PRINT proposal and press the Enter key. The "?" character will be replaced by the ProvideX PRINT directive.

  2. Type a space and then a single quote ( ' ) character to begin a mnemonic followed by the letter "D". The completion proposal containing a list of matching ProvideX mnemonics will be displayed.

    Scroll through the mnemonics and select the 'DIALOGUE' mnemonic and pause...

    After a few seconds, you will see a completion proposal and the context information for the 'DIALOGUE' mnemonic.


    Press the Enter key to select the 'DIALOGUE' mnemonic. The ProvideX 'DIALOGUE' mnemonic will be inserted into the document and the argument list for the 'DIALOGUE' mnemonic will appear with opening and closing braces for the argument list.


    As you type, the current argument will be displayed in bold. To skip the optional arguments just use the right arrow key to move the cursor past the closing brace.

  3. Press Ctrl-Space to activate content assist for all ProvideX keywords.

    The following elements are annotated by icons in the content assist window:

    Directives

    System Functions

    System Variables
     

  4. On a new line, type:

    var$ = _obj'

    The content assist window will appear with a list of the attributes and functions declared in the current ProvideX class:


    Press the Enter key to insert a call to the Function 'GetUserVariable$(idx)

  5. Open the DemoApp/src/prog/menu.pvxsrc file in the ProvideX editor. On a new line, type:

      GOSUB or GOTO

    The content assist window will appear with a list of the program's Line Labels.

Retrieving Context Information

The context information displayed along side the completion proposal for ProvideX directives, system functions and system variables is available at anytime in the editor by simply highlighting the keyword and hovering over it.

  1. Select the keyword CALL and then use the mouse to hover over it. The context information for the  CALL directive will appear: