Microsoft KB Archive/299898

= FIX: Coverage Profiler Fails When Procedure Contains && On Procedure Name Line =

Article ID: 299898

Article Last Modified on 10/15/2002

-

APPLIES TO


 * Microsoft Visual FoxPro 6.0 Professional Edition

-



This article was previously published under Q299898



SYMPTOMS
If you use a procedure that has an inline comment on the same line as the procedure name when you mark a line in the Coverage Profiler, you may receive the following error message:

Problem:

&quot;Command contains unrecognized phrase/keyword&quot;

MarkTargetCoverage



STATUS
This problem was corrected in Microsoft Visual FoxPro version 7.0 for Windows.



Steps to Reproduce Problem
  In Visual FoxPro (VFP) 6.0, paste the following code in a new program. *!* Q299898 FIX: Coverage Profiler Fails When Procedure Contains && On Procedure Name Line
 * 1) DEFINE lMakeData .T.
 * 2) DEFINE CRLF CHR(13)+CHR(10)

CLOSE DATA ALL

IF lMakeData DELETE FILE testdb.DBC DELETE FILE testtab1.DBF DELETE FILE testxx.txt CREATE DATA testdb CREATE TABLE testtab1 (f1 c(5) DEFAULT defval) =STRTOFILE(&quot;procedure defval &quot;+ &quot;&&quot;+&quot;&&quot;+&quot; this is the problem&quot;+ CRLF+ ;       &quot;RETURN SUBSTR(sys(2015),6)&quot;+CRLF + &quot;ENDPROC&quot;, &quot;testxx.txt&quot;) APPEND PROCEDURE FROM testxx.txt OVERWRITE ENDIF

CLOSE DATABASES ALL COMPILE DATABASE testdb

CLOSE ALL SET COVERAGE TO cvglog

USE testtab1 APPEND BLANK

SET COVERAGE TO CLOSE DATABASES ALL DO (_COVERAGE) WITH 'cvglog' RETURN

 Save and run the code (the name is unimportant). When the Coverage Profiler appears, click the line just below the toolbar buttons and press the DOWN ARROW key.

Keywords: kbbug kbfix kbcodesnippet kbvfp700fix KB299898

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.