ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Communication / .Net functions
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
Returns the version number of the .Net Framework available on the current computer.
Example
// Display the version of the .NET Framework
Info("Version of .NET Framework: " + DotNetVersion())
// Is the .NET 3.0 Framework installed on the current computer?
IF DotNetVersion(dnvInstalled, "3.0") = True THEN
Info("The .NET 3.0 Framework is installed")
ELSE
Info("The .NET 3.0 Framework is not installed")
END
Syntax
<Result> = DotNetVersion([<Requested information> [, <Parameter>]])
<Result>: Character string
  • Version of the .NET Framework,
  • Empty string ("") if the .NET Framework is not available.
<Requested information>: Optional integer constant
Version of the .NET Framework to return:
dnvCurrent
(Default value)
Returns the current version installed (which means the most recent version)
dnvInstalledReturns True if the version requested in <Parameter> is installed on the current computer.
dnvListReturns the list of versions installed on the current computer. The different versions are separated by CR characters.
<Parameter>: Optional variant
If <Requested information> is set to dnvInstalled, <Parameter> is a character string containing the version whose test must be run ("3.0" for example). The version to test is compared to the different versions installed on the computer. The comparison between version numbers is a "Starts with" comparison.
Component: wd290vm.dll
Minimum version required
  • Version 11
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help