Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Closing Form
Message
From
02/05/2000 13:16:17
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00365147
Message ID:
00365181
Views:
13
>I have a form with a _traceawaretimer (a VFP foundation class) that closes OK as long as the timer event doesn't fire. The code in the timer event is :
>
>DODEFAULT()
>=MESSAGEBOX(THIS.NAME)
>
>I have a button whose click event is :
>
>SET STEP ON
>
>I was testing the _traceawaretimer class, which slows the timer interval during debugging. Once the Trace window shows up though, I can no longer close the form. Any ideas?

I have found timers to be twitchy critters in VFP. Not bad ones, just twitchy. We've had better luck instantiating timers in memory, not bound to a form. If I wanted the timer to be dependant on the form. I would instantiate it during the load() of the form, and release it during the destroy().

We had a case where timers were changing the current data session when they fired which was rather problematic.

Regards,

Jason
Jason Tryon
Senior Systems Analyst / Technical Lead
eBusiness / iPage
Previous
Reply
Map
View

Click here to load this message in the networking platform