ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Standard functions / Windows functions / Software Factory functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
apExecute (Function)
In french: paExécute
Runs an action plan.
Warning This function can only be performed:
  • from the code of an action plan.
  • from a WLanguage procedure found in an "Action plan" project (or configuration).
Note This function is used to manipulate the WINDEV, WEBDEV or WINDEV Mobile editor. Therefore, it is available in the three products.
Example
// Exécution d'un plan d'action qui attend 2 paramètres : 
// - le répertoire d'exécution de WINDEV
// - la version de WinDev à utiliser
paExécute(PLAN_MonPlan, "D:\WINDEV23", "23")

// Autre possibilité en spécifiant les paramètres avant d'exécuter la fonction
PLAN_MonPlan.RepWD = "D:\WINDEV23"
PLAN_MonPlan.Version = "23"
paExécute(PLAN_MonPlan)
// Cet exemple montre comment passer deux informations à un même paramètre. 
// Par exemple ici on veut exécuter l'ouverture d'un projet dans le GDS. 
// Pour les paramètres de ce plan d'action, il faut indiquer : 
// 1 - La base GDS utilisée, 
// 2 - Le projet dans le GDS. 
// Le RC qui permettra de séparer les informations dans le paramètre.
paExécute(PLAN_MonPlan, "CS:\\ServeurHF\MaBaseGDS" + CR + "GDS:\Projets WinDev\MonProjetGDS")
Syntax
apExecute(<Action plan> [, <Parameter 1> [... [, <Parameter N>]]])
<Action plan>: Character string
Name of the action plan to run. This action plan is entirely run before the next statement.
If an error occurs:
  • The ErrorOccurred variable is set to True.
  • The execution of the action plan stops in error.
  • The "If an error occurs" code of the calling action plan is run.
<Parameter 1>: Type of parameter
First parameter that will be passed to the action plan.
<Parameter N>: Type of parameter
Nth parameter that will be passed to the action plan.
Component: wdxxxfab.dll
Minimum version required
  • Version 16
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/28/2025

Send a report | Local help