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: Matt Slay
  Where is Matt Slay?
 Birmingham
 Alabama - United States
 Matt Slay
 Tags
Subject: RE: Edit a VCX file in a text/code editor?
Thread ID: 209564 Message ID: 209592 # Views: 1 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Classes and Objects
Date: Monday, December 29, 2008 7:43:54 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).

myclass='"'+getfile('vcx')+'"'
use (myclass)
*brow
cr=chr(13)+chr(10)
aa=""    
scan for not deleted()
aa=aa+objname+cr+objcode+cr+repli("-",40)+cr
endscan
use

=strtofile(aa,"c:\myclass.txt")

run/n "notepad" c:\myclass.txt


but the code show is machine code and not be read .
Its a same thing with forms,reports...and all vfp objects stored like tables.
How can decrypt it ??? if you have an answer.
regards

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