Method XbpHTMLViewer2():getRuntimeVersion() Foundation
Gets the version of the installed WebView2 runtime.
:getRuntimeVersion() --> cVersion
The version string of the installed runtime. If the WebView2 runtime is unavailable, return is the empty string.
The XbpHTMLViewer2 class requires an installed MS WebView2 runtime in order to be operational. The class method :getRuntimeVersion() returns the installed WebView2 runtime version. The method can also be used for checking whether the runtime is available on the computer. This is shown in the code snippet below.
(...)
// Check whether the WebView2 runtime is available
IF Empty(XbpHTMLViewer2():getRuntimeVersion())
... Error: runtime unavailable ...
ENDIF
(...)
Starting with Windows 11, the MS WebView2 runtime is considered a part of the operating system. Please consult the asset readme file for instructions on how to make WebView2 available on older platforms.
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.