Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Yousfi Benameur
  Where is Yousfi Benameur?
 El Bayadh
 Algeria
 Yousfi Benameur
 To: Cetin Basoz
  Where is Cetin Basoz?
 Izmir
 Turkey
 Cetin Basoz
 Tags
Subject: RE: Edit a VCX file in a text/code editor?
Thread ID: 209564 Message ID: 209596 # Views: 2 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Classes and Objects
Date: Monday, December 29, 2008 8:00:29 PM         
   


> > I sometimes like to work with my VCX classes in the class browser, and use the IDE to edit the classes, but sometimes I would like to be able to edit them as text/code files. VFP makes you choose one or the other.
> >
> > I know there is a tool on VFPx that will export a VCX to a working code file, but it is only a one-way conversion.
> >
> > I may be dreaming here, but is there a way to export the VCX to a text file, edit it in a code editor, then push it back into a VCX file?
> >
> > That would be the best of both worlds. (And much like Visual Studio I might add).
>
> There are 2 ways (and maybe more):
> 1) PrgToVCX.prg - Tom Rettig's code. I think you can find it.
> 2) SccText.prg that ships with VFP is bidirectional. Check:
> modi comm (_scctext)
>
> Cetin Basoz

Hi Cetin
the first dont solve the Matt problem but the second is wonderful
myclass=getfile('vcx')
ctype=justext(myclass)
ctextName="c:\myclass.txt"
DO "c:\program files\microsoft visual foxpro 9\scctext.prg" with myclass,ctype,ctextName,.t.
run/n "notepad" c:\myclass.txt

And it is available for SCX/VCX/MNX/FRX/LBX (in two directions)
my rate for you
thanks

ENTIRE THREAD

Edit a VCX file in a text/code editor? Posted by Matt Slay @ 12/29/2008 4:39:16 PM
RE: Edit a VCX file in a text/code editor? Posted by Anders Altberg @ 12/29/2008 5:35:24 PM
RE: Edit a VCX file in a text/code editor? Posted by Cetin Basoz @ 12/29/2008 7:27:01 PM
RE: Edit a VCX file in a text/code editor? Posted by Yousfi Benameur @ 12/29/2008 8:00:29 PM
RE: Edit a VCX file in a text/code editor? Posted by Yousfi Benameur @ 12/29/2008 7:43:54 PM