[Gambas-user] Problem with Component.Load("gb.xml.html")
claus.dietrich at freenet.de
Fri Feb 10 14:08:06 CET 2023
I am currently developing a new class. It shall make use of the
but it shall only be loaded, if the target application doesn't use it
yet. So what I do is the
following in the _new routine of my class:
Public Sub _new()
If Not Component.IsLoaded("gb.xml.html") Then
The component is definitely loaded but when I try to use it in a sub of
my class, i.e.
Public Sub ParseHTML(sHTML)
Dim hDoc As New HtmlDocument
I get the error "unknown ... HtmlDocument " in line "Dim hDoc As New
When I add this component to the project as usual, everything is fine.
My mistake? A bug?
More information about the User