>> DOES ANY ONE KNOW OF A TOOL TO RUN THROUGH CODE AND OR DATA THE WILL FLAG >> CORRUPTIONS.<<
You should look at Code Analyst on VFPX (http://vfpx.org). This tool lets you write scripts (VFP code) to analyze a line of code, or a method of code, or etc. You could look at the sample rules and easily write a simple script that will analyze the line of code and look for something like " . " and record the problem to the log. Code Analyst runs against a project and will analyze every line of code in the whole project. Here is script code I use to check for SUSPEND in my code, you should be able to adapt it for your use for this issue: LOCAL loAnalyst, ; lcLine, ; lnLoc, ; lcBegin loAnalyst = _SCREEN._analyst lcLine = UPPER(loAnalyst.cLine) IF OCCURS("SUSPEND", lcLine) > 0 lnLoc = ATC("SUSPEND", lcLine) lcBegin = ALLTRIM(SUBSTRC(lcLine, 1, lnLoc-1)) * Only record if line is not a comment DO CASE * Standard comment CASE LENC(lcBegin) >= 1 AND LEFTC(lcBegin, 1) = "*" * Double ampersand CASE LENC(lcBegin) >= 2 AND LEFTC(lcBegin, 2) = CHR(38)+CHR(38) * The little known NOTE comment CASE LENC(lcBegin) >= 4 AND LEFTC(lcBegin, 4) = "NOTE" OTHERWISE loAnalyst.AddWarning("You have an uncommented SUSPEND " + ; "remaining in the code: " + lcLine) ENDCASE ENDIF loAnalyst = NULL RETURN Rick White Light Computing, Inc. www.whitelightcomputing.com www.swfox.net www.rickschummer.com _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[email protected] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

