PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

  • Overview
  • Highlighting the selected elements
  • Finding code
  • Search in a selection
  • Finding and accessing a process
  • Selection in the code editor
  • Selecting code lines
  • Selection in rectangle
  • Selection by level of blocks
  • Handling one or more code lines
  • Selecting code lines
  • Moving code lines
  • Duplicating code lines
  • Adding quotes/square brackets or brackets automatically
  • Switching a text into uppercase/lowercase
  • Description window of the current element from the code editor
  • Moving procedures or methods
  • Creating a procedure with the keyboard
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Highlighting the selected elements
In the code editor, whenever the cursor is positioned on an identifier (variable, procedure, data file, ...), all uses of this identifier are highlighted in the current code.
Highlighting
Similarly, if the mouse cursor is positioned on a block statement (IF, THEN, ELSE, FOR, END, LOOP, WHEN EXCEPTION ON, ...), the different elements of this block are highlighted.
Highlighting a block of code
Versions 18 and later
Note: When the secondary keywords (ELSE, END, ...) are hovered by the mouse cursor, the associate condition is displayed in a tooltip.
Condition in a tooltip
New in version 18
Note: When the secondary keywords (ELSE, END, ...) are hovered by the mouse cursor, the associate condition is displayed in a tooltip.
Condition in a tooltip
Note: When the secondary keywords (ELSE, END, ...) are hovered by the mouse cursor, the associate condition is displayed in a tooltip.
Condition in a tooltip
Finally, the current line can be easily identified via dots used to highlight the current line.
Highlighting the current line
All these options can be modified if necessary.
To modify the highlighting options:
  1. Display the configuration window of the code editor ("Tools .. Options .. Options of the code editor").Display the configuration window of code editor: on the "Home" pane, in the "Environment" group, expand "Options" and select "Options of the code editor".
  2. In the "Code" tab, select the following options if necessary:
    • "Highlight the blocks of code (IF/THEN/END, brackets, ...)".
    • "Highlight the current line".
    • "Highlight the declaration and the uses of the variable".
  3. Validate.
Note: All the colors used to highlight the elements can be configured in the "Coloring" tab of the configuration window of code editor.
Finding code
To find an element in the code editor, all you have to do is use the "Find/Replace" pane, enabled via "Edit .. Find" of code editor (or Ctrl + F). To find an element in the code editor, all you have to do is use the "Find/Replace" pane, enabled via [Ctrl] + [F].
To perform an immediate search on an element found in the code editor, all you have to do is press Ctrl F3 on an element of code editor (the "Find/Replace" pane being displayed).
Pressing [Ctrl] + [F3]:
  • fills the search control with the word onto which the cursor is positioned.
  • triggers the search.
  • highlights in the code all the occurrences found and positions on the first occurrence.
The F3 and Shift F3 keys allow you to navigate from an occurrence to another one via the keyboard.

Search in a selection

The code editor allows you to perform a search (and a replacement) in a selection.
If a selection exceeding one line is active, the search is automatically performed in this selection.
When performing a search in a selection, the searched word is highlighted in the code.
Sought word highlighted
The F3 and Shift F3 keys allow you to navigate from an occurrence to another one via the keyboard.

Finding and accessing a process

Versions 18 and later
The code editor allows you to find and access a process of the current element: window, page, report, ...
  1. On the "Code" pane, in the "Navigation" group, type the letters used to find the requested process.
    Finding a process
    Note: To automatically display the list of processes, press [ALT] + [C].
  2. Select the requested process in the list. It is automatically displayed in the code editor.
New in version 18
The code editor allows you to find and access a process of the current element: window, page, report, ...
  1. On the "Code" pane, in the "Navigation" group, type the letters used to find the requested process.
    Finding a process
    Note: To automatically display the list of processes, press [ALT] + [C].
  2. Select the requested process in the list. It is automatically displayed in the code editor.
The code editor allows you to find and access a process of the current element: window, page, report, ...
  1. On the "Code" pane, in the "Navigation" group, type the letters used to find the requested process.
    Finding a process
    Note: To automatically display the list of processes, press [ALT] + [C].
  2. Select the requested process in the list. It is automatically displayed in the code editor.
Selection in the code editor

Selecting code lines

To perform a simple selection:
  • A simple click positions the cursor.
  • A double click selects the word.
  • A triple click selects the line.
  • A quadruple click selects the entire text.
During a selection in the code editor, the coloring of the code is kept.

Selection in rectangle

You have the ability to select a rectangular text area in the code editor (horizontal or vertical), then to paste it.
To perform a selection in rectangle:
  1. Position the cursor at the beginning of the area to select.
  2. Press the Alt key and keep it down.
  3. Press the left mouse button and select the requested area.
Then, the area can be copied via the popup menu.
Selection in rectangle
Note: When it is copied to a rectangular area, the copied text is also inserted in rectangle.
Selection in rectangle
Versions 22 and later

Selection by level of blocks

You have the ability to perform a selection by level of code blocks.
To perform a selection by level of blocks:
  1. Position the cursor in the block to select.
  2. Press Ctrl + Alt + Up arrow to select the block found above the cursor. Repeat this operation as many times as necessary.
  3. Press Ctrl + Alt + Down arrow to deselect the block found above the cursor. Repeat this operation as many times as necessary.
New in version 22

Selection by level of blocks

You have the ability to perform a selection by level of code blocks.
To perform a selection by level of blocks:
  1. Position the cursor in the block to select.
  2. Press Ctrl + Alt + Up arrow to select the block found above the cursor. Repeat this operation as many times as necessary.
  3. Press Ctrl + Alt + Down arrow to deselect the block found above the cursor. Repeat this operation as many times as necessary.

Selection by level of blocks

You have the ability to perform a selection by level of code blocks.
To perform a selection by level of blocks:
  1. Position the cursor in the block to select.
  2. Press Ctrl + Alt + Up arrow to select the block found above the cursor. Repeat this operation as many times as necessary.
  3. Press Ctrl + Alt + Down arrow to deselect the block found above the cursor. Repeat this operation as many times as necessary.
Handling one or more code lines

Selecting code lines

  • A simple click positions the cursor.
  • A double click selects the word.
  • A triple click selects the line.
  • A quadruple click selects the entire text.

Moving code lines

A selected area (one or more code lines) can be moved with the keyboard via Alt Up Arrow or Alt Down Arrow.

Duplicating code lines

The duplication of code lines (Ctrl D) operates on a single line or on a selection of code lines.
Adding quotes/square brackets or brackets automatically
To automatically add quotes, square brackets or brackets:
  1. Select one or more words in the code editor.
  2. Press the quote, square bracket or bracket key.
  3. The selected text is automatically enclosed between 2 quotes, square brackets or brackets.
Switching a text into uppercase/lowercase
Versions 18 and later
To automatically switch a text found in the code editor into uppercase or lowercase characters:
  1. Select one or more words in the code editor.
  2. Press the following key combination:
    • [CTRL] + [M]: to switch the selected text into lowercase.
    • [CTRL] + [SHIFT] + [M]: to switch the selected text into uppercase.
New in version 18
To automatically switch a text found in the code editor into uppercase or lowercase characters:
  1. Select one or more words in the code editor.
  2. Press the following key combination:
    • [CTRL] + [M]: to switch the selected text into lowercase.
    • [CTRL] + [SHIFT] + [M]: to switch the selected text into uppercase.
To automatically switch a text found in the code editor into uppercase or lowercase characters:
  1. Select one or more words in the code editor.
  2. Press the following key combination:
    • [CTRL] + [M]: to switch the selected text into lowercase.
    • [CTRL] + [SHIFT] + [M]: to switch the selected text into uppercase.
Description window of the current element from the code editor
Versions 18 and later
To display the description window of the element corresponding to the displayed code:
  1. Position the cursor in the requested code.
  2. Press the following key combination: ALT + Enter
New in version 18
To display the description window of the element corresponding to the displayed code:
  1. Position the cursor in the requested code.
  2. Press the following key combination: ALT + Enter
To display the description window of the element corresponding to the displayed code:
  1. Position the cursor in the requested code.
  2. Press the following key combination: ALT + Enter
Moving procedures or methods
Versions 22 and later
The procedures or the methods are displayed in their creation order by default.
To move a procedure or a method:
  1. Position the cursor at the beginning of code to move.
  2. Select the procedure or method code: use the mouse or press CTRL + A for example.
  3. Cut the procedure or method (Ctrl X).
  4. Position the mouse cursor at the new position of procedure or method.
  5. Paste the procedure or method (Ctrl V).
The procedure or method was moved.
New in version 22
The procedures or the methods are displayed in their creation order by default.
To move a procedure or a method:
  1. Position the cursor at the beginning of code to move.
  2. Select the procedure or method code: use the mouse or press CTRL + A for example.
  3. Cut the procedure or method (Ctrl X).
  4. Position the mouse cursor at the new position of procedure or method.
  5. Paste the procedure or method (Ctrl V).
The procedure or method was moved.
The procedures or the methods are displayed in their creation order by default.
To move a procedure or a method:
  1. Position the cursor at the beginning of code to move.
  2. Select the procedure or method code: use the mouse or press CTRL + A for example.
  3. Cut the procedure or method (Ctrl X).
  4. Position the mouse cursor at the new position of procedure or method.
  5. Paste the procedure or method (Ctrl V).
The procedure or method was moved.
Creating a procedure with the keyboard
To create a global procedure, you can:
  • use the project explorer.
  • use the "Code" pane of code editor ("New" button).
  • Versions 22 and later
    type the prototype of the procedure to create at the end of an existing procedure.
    New in version 22
    type the prototype of the procedure to create at the end of an existing procedure.
    type the prototype of the procedure to create at the end of an existing procedure.
To create a local procedure, you can:
  • use the project explorer.
  • use the "Code" pane of code editor ("New" button).
  • Versions 22 and later
    type the prototype of the procedure to create in the "Global declarations" process of the window or page..
    New in version 22
    type the prototype of the procedure to create in the "Global declarations" process of the window or page..
    type the prototype of the procedure to create in the "Global declarations" process of the window or page..
For more details, see:
Minimum required version
  • Version 16
This page is also available for…
Comments
Click [Add] to post a comment