>Is there a way to find ALL usages of a particular FoxPro command? In this case, I need to find EVERY usage of SYS(2015) and/or the ALIAS argument in a USE statement.
>
>I started receiving calls from users concerning syntax errors in an app that has worked well up until 2000 and found the culprit to be SYS(2015). More specifically, substringing the value that SYS(2015) returns and trying to use the result as a valid file name. Only, the substrung result does NOT begin with an underscore or alpha and so is not a valid file name and so CRASHES AND BURNS gracelessly!!!
>
>Direction and your help GREATLY appreciated.
>
>Please and thanks!
Yeah, use SYS(2015) NOT SUBSTR( SYS(2015...,) or if you use Substr(SYS...), prepend some known legal filename text like "_" or "tmp", etc. ... which you know now. :-)
Happened to me before too. :-) Two things I can think of. One, use the "Find" option in Windows Explorer to determine all files containing the string "SYS(2015)" and make corrections.
Or two, use my TableScan application in the UT Files section to scan all VFP table types for "SYS(2015)" to locate the files. Windows Explorer "Find" would probably be faster.
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.