ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / Editors / Code editor
  • Overview
  • How to?
  • How do I display the WLanguage events associated with an element?
  • Special case: displaying WLanguage events associated with an element in the code editor
  • Special case: F2 on a plan name
  • Tip: Return to last code modification
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Overview
WINDEV, WEBDEV and WINDEV Mobile allow the use of event-driven and object-oriented programming.
The proposed event-driven programming associates one or more WLanguage events with each element used. These events are displayed in the code editor.
For many elements:
  • Some WLanguage events are offered by default: these are the most common and widely used events.
  • Some WLanguage events can be added. These events allow you to manage specific cases (the drag and drop feature, for example). For more details, see Optional events.
How to?

How do I display the WLanguage events associated with an element?

There are several methods to display the events associated with an element (control, window, page, etc.):
  • Use the F2 shortcut. To do so, you must:
    • Select the desired element.
    • Use the F2 key: the code editor is automatically displayed with the default list of associated events.
  • Use the "Code" option in the context menu. To do so, you must:
    • Select the desired element.
    • Right-click to open the context menu and select "Code". The code editor is automatically displayed with the list of default associated events.
Remarks:
  • It is also possible to display the events associated with an element from the element description window: simply click on the button at the bottom of the description window.
  • To display the events associated with the project, a window, a page or a report, you can also use the open document tabs. Simply:
    • Open the context menu of the desired element.
    • Select "Element code" in the menu that appears. The code editor is automatically displayed with the list of default associated events.
  • WEBDEV - Server codeWEBDEV - Browser code The "Server" and "Browser" events related to the selected element are displayed in the code editor. For more details, see Server code/Browser code.

Special case: displaying WLanguage events associated with an element in the code editor

The WLanguage code in the different processes or events can handle specific elements (controls, windows, pages, etc.).
You can directly open the events of an element handled in a line of code by clicking the element and pressing F2.
For example: Consider the following code:
Open(WIN_Menu)
If F2 is pressed while on "WIN_Menu", the code editor will open the events associated with that window.

Special case: F2 on a plan name

If the WLanguage code handles a named plane, you can press F2 while on the name of the plane to open the corresponding window and go to the specified plane.

Tip: Return to last code modification

Often, after writing a line of code, you navigate through the code to check certain elements. And then, you have to go back to that line of code to continue your task.
To return to the initial code, press Ctrl + Alt + Left arrow.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 02/01/2025

Send a report | Local help