HELP: find VFP source code 
Author Message
 HELP: find VFP source code


Quote:
>    I have a question about VFP 3.0 which I just purchased a few days ago.
>how can I print or edit the source code which I degin for my new projects using
>forms and SQL builder? In foxpro 2.6 it creates .pgr file, however, in VFP 3.0
>the .pgr file only contains a lines such as DO FORM xxxxxx.

In VFP there is program file for a form, VFP runs it directly from the
.SCX form definition file.  The program containing DO FORM xxxx is
created by VFP when you transport an existing FP2.x screen to VFP.  It
does this so that any code from the 2.x application will still work in
VFP.

HopeItHelps

----------------------------------------------------------

Fox Developer / Trainer
My Fox Page:   http://www.***.com/ ~markh/fox.htm
Home of MenuLib.
----------------------------------------------------------



Tue, 25 Aug 1998 03:00:00 GMT
 HELP: find VFP source code


Hello Patrick

Quote:
>    I have a question about VFP 3.0 which I just purchased a few days ago.
>how can I print or edit the source code which I degin for my new projects using
>forms and SQL builder? In foxpro 2.6 it creates .pgr file, however, in VFP 3.0
>the .pgr file only contains a lines such as DO FORM xxxxxx.

Your first reaction to VFP is not unusual.  No matter how many times I was
told to start thinking objects and visually and stop thinking code I spent
a long time looking for the code.  If only I could find the code I
thought, then I could conquer the blasted thing and see how it works.  You
will need to get into code but that should be much later when you
understand the whole new methodology of VFP.  And anyway then your code
will tend to be in snippets scattered around your objects.  Sadly though
this is a thing which you have to learn for your self <g>, so knowing that
you will ignore my advice I offer the following pointers.

The forms are each defined in a separate tables.  These tables have the
SCX extension and consist of a number of fields which define the objects
contained in the form as well as the form itself.  The most notable of
these are the Properties, Methods and Objcode memo fields.  The first two
contain some source code, the last the compiled code.  Edit these fields
directly at your peril.  Looking at these SCX tables will probably confuse
you even more so I suggest you download the file GENSCOD.ZIP by Andy
Kramek. This is a truly excellent freeware program which will display or
print out the code that makes your screen tick.  Not a true SPR in the
sense that you could then run it as a program instead of DO FORM but it
will help you understand what is going on.  Don't be depressed if it
prints out hardly anything at all, that is because much of the
functionality of a straight forward form is inherent in the objects it is
composed of.  Of course, deep down there is some code somewhere in the run
time library which drives the screen generation and reaction to events but
that is in machine code and has absolutely nothing to do with you writing
an application using that form.  The object revolution is here, throw away
the shackles of structured, long winded programs and develop bugs faster
than you have ever developed them before. *BUT* now your bugs will be more
often logical bugs rather than simple coding bugs, and that is the way it
should be - when you remove the logical bugs you are left with a
wonderfully stable, robust application.

Cheers

Mike

PS your can find GENSCOD.ZIP and other goodies at Willy De la Court's VFP
add on home pages at http://www.ping.be/~ping0150/vfp.html

(And don't forget to sign Willy's guest book)

-----------------------------------------------------------------
Mike Chalk   ASAD SYSTEMS Ltd.              C/Foxpro26/VFP/Delphi

-----------------------------------------------------------------



Tue, 25 Aug 1998 03:00:00 GMT
 
 [ 2 post ] 

 Relevant Pages 

1. Help finding VBPJ source code

2. Visual Basic source-code to C++ source-code

3. Need Accounting With Source Code For VFP

4. Ned API source code for VFP editor extension

5. Retrieving source code in VFP

6. need VFP source code

7. need VFP source code

8. Source Code in VFP 3.0 for Screens

9. Need Accounting Source Code for VFP

10. Printing a form's source code in VFP

11. Protect VFP source code against decompilers

12. DTS Source code not found !!


 
Powered by phpBB® Forum Software