Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize


Turns code coverage on or off, or specifies a text file to which code coverage information is directed.



TO FileName

Specifies the name of a text file to which code coverage information is directed. Issue SET COVERAGE TO without a file name to close the text file.

If the file you specify does not exist, Visual FoxPro automatically creates and opens it.


Appends the code coverage information to the end of the text file specified with FileName. If you omit ADDITIVE, the code coverage information replaces the contents of the text file.

You can use SET COVERAGE at design time and at runtime in Visual FoxPro 9.0. Coverage.app, the Coverage Profile application included with Visual FoxPro, cannot be included with your distributed runtime applications. See Distributable and Restricted Visual FoxPro Features and Files for more information about files and applications that can be included with your Visual FoxPro distributed applications.

For more information about code coverage options, see Coverage Dialog Box. For more information about the Visual FoxPro Coverage Profiler, see Coverage Profiler Application.

Community Additions

© 2015 Microsoft