Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Release parent from child object
Message
From
06/11/2003 04:27:43
 
 
To
05/11/2003 10:53:59
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00846374
Message ID:
00846964
Views:
23
Hi,

>goApp is a public variable.
>goApp have a reference of timer in goApp.aReference[]
>Timer.Timer()
>goApp.Shutdown()

Fox probably doesn't like trying to return to an object that's been destroyed. Maybe use event binding? E.g:
DEFINE CLASS oApp as Container
oTimer = CREATEOBJECT("Timer")
oTimer.Interval = 1000
oTimer.Enabled = .T.
PROCEDURE INIT()
BINDEVENT(This.oTimer,"Timer",this,"Shutdown")
ENDPROC
PROCEDURE ShutDown()
QUIT
ENDPROC
ENDDEFINE
oX = CreateObject("oApp") works.
Regards,
Viv
Previous
Reply
Map
View

Click here to load this message in the networking platform