ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Windows functions / System functions
  • "Module Name" parameter
  • Equivalence
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
SysInstance (Function)
In french: SysInstance
Returns the instance of a module.
Example
// Instance of current application
ResInstance = SysInstance()
Syntax
<Result> = SysInstance([<Module Name>])
<Result>: Integer
Instance of specified module.
<Module Name>: Optional character string
Corresponds to:
  • the name and full (or relative) path of the executable file (".EXE" extension) for the current application. A UNC path is allowed.
  • the name and full (or relative) path of a WINDEV library (".DLL" file) currently loaded in memory (LoadDLL). A UNC path is allowed.
If this parameter is not specified, the instance of the current application is returned.
Remarks

"Module Name" parameter

The <Module Name> parameter must not contain the name and path of an executable file different from the one of the current application.
To find out whether an executable is currently run, use ExeRunning.

Equivalence

ResInstance = SysInstance()
is equivalent to
ResInstance = Instance()
Component: wd290std.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help