Trace Aware Timer Foundation Class

Category Application
Default Catalog Visual FoxPro Catalog\Foundation Classes\Application
Class _traceawaretimer
Base Class Timer
Class Library _app.vcx
Parent Class _timer
Sample ...\Samples\Solution\Ffc\environ.scx

Remarks

This is an application utility that detects whether the trace window is open and handles debug timing appropriately. Although Visual FoxPro makes it possible for you to skip tracing timer events altogether when debugging, this isn't always an appropriate solution because sometimes the code in timer events is pertinent to what you're trying to debug. Instead, this timer determines whether any of the debugging window is visible and if so, sets a special slow interval.

To use, drop the class on a project or form or, from the Component Gallery Item Shortcut Menu, select Add to Form. When you add the class to a project, you can choose between adding the class or creating a subclass. When you add the class to a form, Visual FoxPro places an icon on the form. You can then specify the appropriate property values and provide any necessary input and output objects. When you drop the class on a project, you can choose between adding the class or creating a subclass.

Properties, Events, Methods Description
iRegularInterval property Specifies the standard interval period.
Stored during the Init event, and
restored during Timer events if you've
changed the Interval.
Default: 0
iTraceInterval property Specfies a slower interval period to use
while debugging.
Default: 10000

See Also

Guidelines for Using Visual FoxPro Foundation Classes | Visual FoxPro Foundation Classes A-Z | Visual FoxPro Foundation Classes