[Gambas-user] INHERITS
Dimitri Bellini
dimitribellini at ...69...
Tue Apr 13 09:14:37 CEST 2004
Dear All
thanks for your reply and i hope have passed a good easter holiday.
I have try to understand the "INHERITS" function so i create a new Class file
Called XTimer and i add this line:
----
' Gambas class file
INHERITS {Timer}
PRIVATE tag AS Integer
PUBLIC Name AS String
PUBLIC SUB _new(sName AS String)
Name = sName
END
------
and i call it from my main form like it:
-----
tmr=NEW XTimer("XTimer", FMain) AS "tmrCab"
tmr.tag=i
-----
But when i run the Program i have a mex that say " XTimer.tag is not property"
Thanks in advance
Dimitri
More information about the User
mailing list