Was this helpful?
GetWebView2Version Method
The GetWebView2Version method returns the WebView2 version (for example, 92.0.902.78), if found (indicating that WebView2 runtime is installed). Otherwise, it returns an empty string.
This method has the following syntax:
varchar = SubForm.GetWebView2Version();
For example:
declare
ver = varchar (255);
enddeclare
...
ver=FIELD(subform1).GetWebView2Version();
Curframe.Trace(text=ver);
if ver = '' then
    message 'Webview2 is not installed';
else
    // frame.flush() is mandatory if FIELD(subform1).Url() is called during Form.initialize() block.
    curframe.flush();
 
    FIELD(subform1).Url(url='https://www.actian.com');
endif;
Last modified date: 12/20/2023