Trace Aware Timer Foundation Class

This is an application utility that detects whether the trace window is open and handles debug timing appropriately.  

Category Application

Default Catalog

Visual FoxPro Catalog\Foundation Classes\Application



Base Class


Class Library


Parent Class





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


Visual FoxPro Foundation Classes A-Z


Guidelines for Using Visual FoxPro Foundation Classes

Other Resources

Foundation Class Samples