Turns code coverage on or off, or specifies a text file to which code coverage information is directed.
SET COVERAGE TO [FileName [ADDITIVE]]
- 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.