Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Convert Form file to Text

Status
Not open for further replies.

Raven123

Programmer
Mar 8, 2001
9
0
0
US
Hello,

Does anyone know of a utiltiy that pulls the Method/Event code out of a .SCT and writes to ASCII file?

We are trying to do a DIFF on two versions of the same form, and cutting/pasting each method into a .TXT file seems pretty tedious... Any suggestions?

Thanks in advance for any help,

Rich.
 
Hi
In the VFP6

Open the Tools Menu -> Class Browser
-> Click on Open Icon
-> Select File Type as Form
-> Look in your directory and select The form
-> Click Open
-> Click on View Code Icon
-> Save the file as your wanted text file

Hope this helps :)

ramani :-9
(Subramanian.G)
FoxAcc
ramani_g@yahoo.com
LET KNOW IF THIS HELPED. ENOUGH EXPERTS ARE HERE TO HELP YOU OUT! BEST OF LUCK :)
 
You can also use the SCCTEXT.PRG that comes with VFP. This is what Visual SourceSafe uses to create text files so it can compare differences. You can completely automate this programatic solution. It works on Forms (.SCX), Classes (.VCX), Menus (.MNX), Reports (.FRX), Labels (.LBX) and Databases (.DBC). Note that MS supplies virtually the same code for VFP 5, 6 and 7, however that version has a problem with the "ordering" of method code that's been changed. There were a couple updates published in FoxPro Advisor and I've fixed a couple other problems. For this updated version of SCCTEXT.PRG go to our local user group site and get "SCCTEXT.ZIP[15 KB]".

Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top