Page 1 of 1
bug with object in clock.bas
Posted: Thu Jun 28, 2007 9:48 pm
by Yam
I get this error:
error:12 line:20 Variable cl.parent not declared
It did work with the old compiler but not with the new one.
bug with object in clock.bas
Posted: Fri Jun 29, 2007 6:57 am
by Marco
Please have patience,
I discover a major problem with the include , uses command which affect the type declaration as well.
If you notice it you don`t have to declare the subs and function before you can use them, the could be anywhere in the program.
Only the include and uses command are declared if the compiler met them so i am changing that.
If I tested the new compiler I will put it at the forum.
best regards marco
bug with object in clock.bas
Posted: Fri Jun 29, 2007 6:57 am
by PaPi
And it is interessant, with my altering in program work the new compiler fine...
PaPi
[code]
original code:
.
.
.
object myform as form
object cl as clock
end object
end object
dim t as timer
t.Interval=1000
t.ontimer=cl.adjust
.
.
.
my code:
.
.
.
dim myform as form
dim cl as clock
cl.parent=myform
dim t as timer
t.Interval=1000
t.ontimer=cl.adjust
.
.
.
[/code]