bug with object in clock.bas

Here one can report bugs or hold discussions about bugs updates and work arounds.
Post Reply
Yam
Posts: 11
Joined: Mon Apr 23, 2007 11:36 am

bug with object in clock.bas

Post: # 93Post Yam
Thu Jun 28, 2007 9:48 pm

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.


Marco
Site Admin
Posts: 246
Joined: Sat Sep 15, 2018 8:41 pm

bug with object in clock.bas

Post: # 95Post Marco
Fri Jun 29, 2007 6:57 am

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

PaPi
Posts: 114
Joined: Wed May 16, 2007 11:55 am

bug with object in clock.bas

Post: # 94Post PaPi
Fri Jun 29, 2007 6:57 am

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]

Post Reply