PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • Name and directory of executable
  • Managing errors
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
AutoRunAdd (Function)
In french: AutoLanceAjoute
Allows you to automatically start a WINDEV application when a specific event occurs. The application to be run can correspond to the current application.
Remark: AutoRunDelete is used to cancel the automatic run of an application.
Example
// Automatically run the "MyApp" application
// at startup
AutoRunAdd(alStartup, "MyApp", fExeDir() + "\CustomerManagement.exe")
Syntax
AutoRunAdd(<Run event> , <Application> , <Executable>)
<Run event>: Integer constant
Event that triggers the application run:
alStartupRun the application when starting the current PC
<Application>: Character string
Name of the application to be run. This name will be used in AutoRunDelete.
<Executable>: Character string
Name and full path of the executable of the application to be run. This executable is on the current computer.
This parameter can contain the command line that will be passed to the executable.
Remarks

Name and directory of executable

  • ExeInfo associated with the exeName constant returns the full executable name for the current application.
  • fExeDir returns the directory containing the executable of current application.

Managing errors

Caution: AutoRunAdd returns no error code. To determine if this function generated an error, use the ErrorOccurred variable. If an error occurs, you can get the details of the error with ErrorInfo.
Business / UI classification: Business Logic
Component: wd270ce.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment