[Gambas-user] Raising events during the constructor method
B Bruen
bbruen at ...2308...
Tue Jun 10 05:36:23 CEST 2014
I don't know whether I have only just noticed this, but is it possible to raise events during the constructor?
Main class:
Dim myThing as Thing
myThing = new Thing as "Something"
Public Sub Something_Hello()
Debug
End
Thing class
Event Hello()
Public Sub _New()
Raise Hello
End
The main class Something_Hello() never gets executed.
Is this because the object does not exist yet?
regards
Bruce
--
B Bruen <bbruen at ...2308...>
More information about the User
mailing list