ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Tools / WDScript
  • Overview
  • Use
  • Starting WDScript
  • Use conditions
  • ANSI/UNICODE strings
  • Installing WDScript
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
WDScript is a WLanguage script editor included with WINDEV, WEBDEV and WINDEV Mobile. WDScript allows you to:
  • write scripts in WLanguage.
  • execute existing WLanguage scripts.
This makes it possible to automate certain tasks that do not require an interface and that must be launched in "batch" mode (e.g., processing error logs).
Use

Starting WDScript

WDScript can be launched in interactive mode:
  • directly from WINDEV, WEBDEV or WINDEV Mobile: on the "Tools" tab, in the "Utilities" group, click "WDScript".
  • by running the following files in the "Programs" subdirectory of the WINDEV, WEBDEV or WINDEV Mobile installation directory:
    • WDScript.exe: Runs the 32-bit version of WDScript.
    • WDScript64.exe: Runs the 64-bit version of WDScript.
For more details, see WDScript: use in interactive mode.
WDScript can be launched in command-line mode to directly run the desired WLanguage script.
WDScript can be launched in "console " mode via the following executables:
  • WDScriptConsole.exe: Runs the 32-bit version of WDScript in console mode.
  • WDScriptConsole64.exe: Runs the 64-bit version of WDScript in console mode.

Use conditions

WDScript is a freely redistributable tool. WDScript can be installed with applications developed with WINDEV, WEBDEV or WINDEV Mobile. The terms of the WINDEV license agreement apply.

ANSI/UNICODE strings

Caution: In interactive and command-line modes, the code executed by WDScript uses the strings configured in UNICODE. Therefore, you must:
  • use the UNICODE syntax of functions (if specific).
  • explicitly declare ANSI strings if they will contain non-UNICODE data.

Installing WDScript

WINDEV Case 1: Setup with WINDEV applications
When creating the setup procedure, you can include WDScript in your WINDEV applications.
Reminder: The setup procedure can be created:
  • via the wizard: on the "Project" tab, in the "Generation" group, expand "Setup procedure" and select "Create setup procedure".
  • from the setup editor: on the "Tools" tab, in the "Utilities" group, click "WDInst".
Case 2: Stand-alone setup
The following files are required to install WDScript:
  • WDScript.exe (32-bit) or WDScript64.exe (64-bit): This module is located in the "\Programs\" directory of WINDEV, WEBDEV or WINDEV Mobile,
  • WDScriptConsole.exe (32-bit) or WDScriptConsole64.exe (64-bit): This module is located in the "\Programs\" directory of WINDEV, WEBDEV or WINDEV Mobile,
  • The corresponding framework: since all WLanguage functions can be used, it is necessary to install the full framework. It is located in the following directories:
    • "\Programs\Framework\Win32x86" for WDScript.exe (32-bit),
    • "\Programs\Framework\Win64x86" for WDScript.exe (64-bit).
  • The WDTool.wdk component: it can also be found in the "\Programs\" directory of WINDEV, WEBDEV or WINDEV Mobile.
  • The CC290HF.DLL (32-bit) or CC290HF64.DLL (64-bit) file, located in the "\Programs\" directory of WINDEV, WEBDEV or WINDEV Mobile. These DLLs correspond to the simplified code editor, shared with the HFSQL Control Center.
  • The WDScript_FR.pdf and WDScript_EN.pdf files. These files are located in the "\Help\" directory of WINDEV, WEBDEV or WINDEV Mobile.
Minimum version required
  • Version 28
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 12/13/2023

Send a report | Local help