[Gambas-user] gb.gui.webview
Bruce Steers
bsteers4 at gmail.com
Mon Apr 26 01:45:25 CEST 2021
you could probably simply use Try...
Try WebView1.HTML = "The_HTML_Code"
If Error Then WebView1.SetHtml("The_HTML_Code")
that would probably work
BruceS
On Sun, 25 Apr 2021 at 23:21, Martin <mbelmonte at belmotek.net> wrote:
> Hi.
>
> After testing with the version detection and that this method is not
> accurate, I decided to use another more precise method using the symbols
> of the classes, in this case webview.
>
> xClass = Classes["WebView"]
>
> If xClass.Exist("HTML") Then
> WebView1.HTML = "The_HTML_Code"
> Else
> If xClass.Exist("SetHtml") Then
> WebView1.SetHtml("The_HTML_Code")
> Endif
> Endif
>
> Regards.
>
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20210426/512e98e0/attachment.htm>
More information about the User
mailing list