Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Releasing a timer from within itself
Message
 
 
To
11/09/2007 12:22:13
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
01253513
Message ID:
01253713
Views:
21
>Again, thank you for your response.
>
>Do classes with a native Release method, like a form, allow you to destroy the object from within?
>
>IF ThisForm.QueryUnload()
>    ThisForm.Release()
>ENDIF
>
Yes forms can release themself but they also could stuck in memory if there're dangling references on the form.

>Would that work in a timer event?

I'm not sure how it's releated to a timer.

>Furthermore, could other types of objects effectively destroy themselves by establish an ON KEY LABEL to a prg that would accept the object reference, dispose of the object, and then clear the ON KEY LABEL? The object could use the keyboard command to accomplish the deed.
>
>What do you think?

A timer could be a better solution. :)
You can instantiate it once and then when you need set command to execute and launch it.
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform