Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Fernando Bozzo
  Where is Fernando Bozzo?
 Madrid
 Spain
 Fernando Bozzo
 To: Shaheryar Rashed
  Where is Shaheryar Rashed?
 Multan
 Pakistan
 Shaheryar Rashed
 Tags
Subject: RE: how to see code of form
Thread ID: 416398 Message ID: 416405 # Views: 59 # Ratings: 2
Version: Visual FoxPro 9 SP2 Category: Forms
Date: Monday, December 29, 2014 8:53:29 AM         
   


> >
> > If you are talking about the methods and events, then if you use the form (.scx), you can go check the Methods field.
> >
> >
> > https://vfpx.codeplex.com/releases/view/99045
> > http://sandstorm36.blogspot.com
>
> when i make a form and complete my all requirement on it, i want to see the code behind form. that code which if i copy and paste in a prg and save. afterwards when i run that prg, it run my form

Hi Shaheryar:

There is no PRG-export that could be executed, AFAIK, but if you want to see your form as PRG, you have at least 2 tools available:

- Class Browser: Let you open a class and export as PRG (read only, not always valid compilable PRG)
- FoxBin2Prg: Let you export any VFP 9 binary to PRG-Style (editable, can regenerate original binary, but not valid compilable PRG)

Problem with visual classes, forms included, is that when you start using subclasses and/or containers, generated PRG code with Class Browser is not valid anymore, because it is generated in a "save format" that is useful for storing it, and not to execute it, so you must decide if you want to have a text representation that you can search/replace and regenerate binary (FoxBin2Prg, at VFPx) or directly doing your forms as PRG classes, without any IDE (a bad idea for me).

Regards,

Fernando D. Bozzo

ENTIRE THREAD

how to see code of form Posted by Shaheryar Rashed @ 12/29/2014 8:03:39 AM
RE: how to see code of form Posted by Jun Tangunan @ 12/29/2014 8:10:39 AM
RE: how to see code of form Posted by Shaheryar Rashed @ 12/29/2014 8:40:32 AM
RE: how to see code of form Posted by Vivek Deodhar @ 12/29/2014 8:53:26 AM
RE: how to see code of form Posted by Fernando Bozzo @ 12/29/2014 8:53:29 AM
RE: how to see code of form Posted by viorel grafu @ 12/29/2014 11:52:34 AM