Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Ideas on solution?
Message
From
31/01/2003 20:25:15
 
General information
Forum:
Visual FoxPro
Category:
Project manager
Miscellaneous
Thread ID:
00747185
Message ID:
00747933
Views:
14
David,
>AddObject() the timer to the _screen, then it can simply:
>
>
_screen.RemoveObject( this.name )
>
>when it's work is done.

Something just occured to me.

Would this be considered anti-OOP because the timer is ASSUMING that it is added to the _Screen? (ie: it is NOT completely encapsulated)

I realize that I could do something like:
_Screen.AddObject('myTimer','myTimer_Class','myWindow',_Screen)

myTimer.Init(cWindowToCheck,oContainer)
if vartype(oContainer)<>'O'
  return .f.
endif
this.oContainer=oContainer

myTimer.TimerEvent()
...
this.oContainer.RemoveObject(this.name)
but it seems like overkill.
Bill Morris
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform