Hi
You can use the following.
1. Cut and paste the following code as gsCode.PRG
2. Open the project and run this from command window.
=GSCODE() or DO gsCode
3. You will get all the procedures in all forms in your project.. as a text file in the projects name.
4. You can now use the native seek command to locate the words or commands you want to search and identify the places.
5. Since I have my own code editor for forms, I have ceased using this tool developed earlier. However I just modified slightly and added the title/date code provided by Klaus.
6. Provided as freeware and Use at your own risk.
7. This only brings up the code collection.. but does not provide for modifications to the relevant forms.
*********************************************************
** Programe gsCode2
** Category : Development Tool
** This program will write all methods from all forms
* included in the open project
* to a text file with same name as project
** Since discontinued.. refer gsEdit for latest version
*********************************************************
** PROCEDURE gscode2
*
#DEFINE CRLF chr(13)+chr(10)
LOCAL cFormFile, cAlias, cSaveError, ;
cOutPut, cTitle, Date_time, cLine, cLine1, ;
nFiles, nCount, nLoc
CLOSE TABLES ALL
** Collect files from project
nFiles = application.ActiveProject.Files.Count
cOutPut = application.ActiveProject.Name+".txt"
cLine = REPLICATE("*",70)+CRLF
cLine1 = "** procedure end *"+REPLICATE("*",50)+CRLF
cTitle = "** Documentation of the forms in Project: " +JUSTSTEM(cOutPut)+CRLF
date_time = "** Date/Time: "+ TTOC(DATETIME())+CRLF
*Write the headers with formTitle+date+time
STRTOFILE("",cOutput,.F.) && Wipe existing file
STRTOFILE(cTitle,cOutPut,.T.)
STRTOFILE(date_time,cOutPut,.T.)
STRTOFILE(cLine,cOutPut,.T.)
STRTOFILE(CRLF+CRLF+CRLF,cOutPut,.T.)
**
FOR i = 1 TO nFiles
cFormFile = application.ActiveProject.Files(i).NAME
IF UPPER(JUSTEXT(cFormFile)) = "SCX"
** Now we can actually start
cAlias=JUSTSTEM(cFormFile)
nCount = 1
USE (cFormFile) IN 0 ALIAS (cALias)
SELECT (cAlias)
** Create a sub-title for the form
cTitle = "** FORM: " +cAlias+CRLF
STRTOFILE(cTitle,cOutPut,.T.)
STRTOFILE(cLine,cOutPut,.T.)
**
SCAN
* Look for Methods
DO WHILE .t.
nLoc=AT("PROCEDURE",UPPER(methods), nCount)
IF nLoc>0
cTemp=SUBSTR(methods,nLoc)
cTemp=LEFT(cTemp,AT("ENDPROC",cTemp)+7)
STRTOFILE(cAlias+ ;
" *** "+objname+CRLF+cTemp,cOutput,.T.)
STRTOFILE(cLine1,cOutPut,.T.)
STRTOFILE(CRLF+CRLF+CRLF,cOutPut,.T.)
ELSE
EXIT
ENDIF
ncount = nCount+1
ENDDO
nCount = 1
ENDSCAN
STRTOFILE(cLine,cOutPut,.T.)
STRTOFILE("** End of form procedures....: "+ ;
cAlias+CRLF,cOutPut,.T.)
STRTOFILE(cLine+cline+cline+cline+cline,cOutPut,.T.)
STRTOFILE(CRLF+CRLF+CRLF,cOutPut,.T.)
USE IN (cAlias)
ENDIF
ENDFOR
MODIFY FILE (cOutPut)
RETURN
*********************************************************
** EOF
*********************************************************
ramani

(Subramanian.G),FoxAcc, ramani_g@yahoo.com
Merry Christmas & Happy New Year