PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Warning
From version 23, AppliActivateVersion is kept for backward compatibility. This function is replaced by AppActivateVersion.
Activates one of the application versions available in the history of versions on the reference setup server.
Note: This function can only be used with a network setup on a local network. It cannot be used with a setup by IP.
Example
// Creates the list of available versions
ListVersions is string
ListVersions = AppListVersion()
// Extracts the last version
LastVersion is string
LastVersion = ExtractString(ListVersions, 1, CR, FromEnd)
// Activate the version
IF AppActivateVersion(LastVersion) = False THEN
Error("Error while activating the version " + LastVersion +  ...
CR + ErrorInfo())
END
Syntax
<Result> = AppliActivateVersion(<Version> [, <Forced Version>] [, <Executable>])
<Result>: Boolean
  • True if the activation was successfully performed,
  • False otherwise. To find out the error details, use ErrorInfo.
    Note: the possible error causes are as follows:
    • the history of versions is not enabled.
    • the requested version does not exist.
<Version>: Character string (with quotes)
Version number to activate.
<Forced Version>: Optional boolean
  • True to force the version to activate. All the computers will be updated with the version specified in <Version>, including the computers that use a more recent version.
  • False (default value) otherwise.
<Executable>: Optional character string (with quotes)
Full path of executable corresponding to the application to update. If this parameter is not specified, the current application is updated.
Components
WINDEVReports and Queries wd230std.dll
Minimum required version
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment