ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / Tools / WDScript
  • Overview
  • The WDScript ribbon
  • "Home" tab
  • Code" tab
  • The WDScript code editor
  • WDScript output console
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
In interactive mode, the WDScript editor is divided into several areas:
  • The ribbon, which contains the most frequently used options,
  • The code editor, which allows writing the WLanguage script.
  • The output console, which shows the results of code execution as well as the errors encountered during execution.
The WDScript ribbon
The WDScript ribbon has two tabs:
  • The "Home" tab, which includes the different options for handling WLanguage scripts.
  • The "Code" tab, which allows you to handle the WLanguage code.

"Home" tab

The "Home" tab allows you to:
  • Create and handle a WLanguage script file, via the "New", "Open", "Save" and "Close" options.
  • Run the current script ("GO" option).
  • Change the WDScript options.
    The "Options" option allows you to:
    • Choose to associate "wl" files generated by WDScript with WDScript or WDScriptConsole.
      • If the wl file is associated with WDScript, it will be automatically opened in the WDScript interface when double-clicked.
      • If the wl file is associated with WDScriptConsole, it will be automatically executed in console mode when double-clicked.
    • Include the "Open in WDScript" option in the Windows file explorer. This option will appear in the context menu of the file in the Windows file explorer.
    • New in version 2024
      Enable completion. In this case, when the code is entered in WDScript, the various possible functions will be proposed during entry.
    The "Help" option allows you to:
    • Open the help page for the selected WLanguage function on PC SOFT's documentation website.
    • Choose the display language of WDScript.

Code" tab

The "Code" tab allows you to handle the code displayed in the WDScript code editor.
You can:
  • Comment / Uncomment one or more lines of code.
  • New in version 2024
    Cancel or restore the last operation performed.
  • New in version 2024
    Go to the specified row: simply enter the row number .
  • Search for a text in the script.
The WDScript code editor
The WDScript code editor is a simplified version of the code editor in WINDEV, WEBDEV or WINDEV Mobile. It is intended for scripts containing shorter and simpler code, compared to its fully-fledged counterpart in the three IDEs.
WDScript code editor features:
  • Syntax highlighting.
  • Simple keyboard shortcuts.
  • Simple code completion.
  • Compilation errors are displayed as tooltips, directly in the code.
There are some limitations:
  • The WLanguage script must contain a single block of code.
  • Procedures must be internal procedures.
  • Internal procedures must be declared before being executed.
  • There is no debugger available.
  • Control, window, page or report names cannot be used.
WDScript output console
The output console allows you to:
  • View the results returned by the script when run in interactive mode (e.g., Trace function).
    The return value of the executed code is also displayed.
  • View execution errors when the script is run in interactive mode.
This pane can be undocked and resized. Errors are displayed in red. The button clears the contents of the output window.
Minimum version required
  • Version 28
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 02/21/2024

Send a report | Local help