ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Editors / Code editor
  • Overview
  • How to?
  • Enabling the automatic completion
  • Remarks
  • Language of the code
  • Automatic completion on the type of variables
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Overview
Autocompletion is available for WLanguage commands, procedures, variables, data files, items of data files, windows, controls, types of variables, etc.
This Autocomplete functionality reduces the risk of typing errors and saves a lot of time: no need to search for the exact name of a global variable or control, it is automatically suggested!
The automatic completion is used to:
  • complete the current input by proposing a list of possible values (function name, property name, etc.). All the values proposed in the list contain the word currently typed.
    The content of the list is refreshed whenever a modification is performed.
    For example, when typing "OKC", all functions, controls, constants and code snippets, ... containing these characters are suggested.
    Complete the current input
    Remark: The autocomplete functionality is also available when you change a function that you already entered in the code editor.
    Example: if you want to replace "HReadFirst" with "HReadSeekFirst": when you start typing "Seek" between "Read" and "First", the autocomplete feature automatically shows "HReadSeekFirst". When you select the new function, the old function is automatically replaced.
  • suggest the value of the possible parameters according to the WLanguage function used.
    For example, when using HRead, the first expected parameter corresponds to the name of a data file. The automatic completion will only propose the data files of the analysis associated with the current project.
    Propose only the possible parameters
  • select the combinations of constants for a parameter.
    To do so, select the desired options (with the arrow keys) and press Space to confirm.
    Once confirmed, all selected options are automatically integrated into the code.
    Remark: The constants are separated in different colored areas used to identify the constants that can be combined (or not) between themselves (two constants found in a colored area with a picker cannot be selected at the same time).
    Select the combination of constants
  • start the code wizards. These wizards allow you to enter the different parameters of the function by answering simple questions.
    The <Xxx wizard> option indicates that a wizard is available. To start the wizard, select this option.
    Start the code wizards
  • propose the different available extension attributes on the current line of code.
    An extension attribute corresponds to a directive passed to the compiler. These attributes are powerful and practical. To get the list of extension attributes available on the current element, simply type "<".
    Propose extension attributes

    For more details on the available extension attributes, see List of extension attributes.
Remarks:
  • To select one of the suggestions:
    1. Navigate through the list using the arrow keys.
    2. Confirm the selection:
      • with the Enter key.
      • New in version 28
        with the Tab key.
  • The drop-down lists can be resized.
  • If your procedure or function uses a project element (window, page, report, etc.), you can get the list of the desired elements via the automatic completion. To do so, add an attribute with a specific extension into the declaration of function or procedure parameters. For more details, see Parameters of a function or procedure.
  • If you are using a Data Source variable, all you have to do is add an attribute with a specific extension to associate it with an existing data file (or query). In this case, the automatic completion will allow you to access the items directly. For more details, see Data Source variable.
  • The code editor also provides assisted input (parameter hinting, etc.). For more details, see Code editor: Assisted input.
How to?

Enabling the automatic completion

To enable the automatic completion in your project:
  1. Open the options of code editor: on the "Home" tab, in the "Environment" group, expand "Options" and select "Options of the code editor".
  2. Check "Enable the assisted input after an idle time of" and specify the time after which the automatic completion should be proposed.
Remark: To disable the automatic completion, uncheck this option.
Remarks

Language of the code

The list of WLanguage keywords proposed by the automatic completion is available in English or in French.
To modify the code language used by the automatic completion:
  1. Open the options of code editor: on the "Home" tab, in the "Environment" group, expand "Options" and select "Options of the code editor".
  2. Select the language of the code in the "Code language: " combo box.

Automatic completion on the type of variables

When declaring a new variable, the different types are automatically proposed. Simply write: "MyVariable is ".
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/12/2023

Send a report | Local help