about a project in VFP9

Please tell me, is a diferent if I create a project (with Project manager) after I have all elements of my aplication (data base, tables, forms, reports, menu, etc) and I will include them in new project, or

I must create a project, before I will start to create any componets of aplication

Thank you.



Answer this question

about a project in VFP9

  • Hugo6003

    As Tamar and Craig already said the order is either way. I want to expand on it a bit.

    If you start by creating the project first, and add elements as you go then you'd easily track your form,class,prg etc pieces (and probably add source control).

    However the order is so irrelevant that you could even after completing the whole project, might delete the project file, create a new one and only put the main prg,menu or form in it. Rebuild the project and it would pull all the files needed into the project. This generally works with some exceptions. ie: You might have a data driven menu:

    Description Method
    ---------------------- -------------------
    Invoicing DoForm("Invoice")

    Instead of having "Do form Invoice" in code you have a custom DoForm() method which handles "do form" with given parameter. In this case project manager doesn't know that invoice.scx is part of application and doesn't pull it into the project. (It would be the case too if you did something like -I believe you wouldn't but I have seen people doing that- :
    lcForm = "Invoice"
    do form &lcForm
    or worse:

    lcCmd = "do form Invoice"
    &lcCmd )

    You could workaround it by adding a dummy.prg to the project:

    *Dummy.prg - all it does is to make sure project elements are pulled into the project
    if .F.
    do form Invoice
    endif


  • Alex McCool

    It doesn't matter. You can do it either way.

  • CurtCBerry

    Hi Nigel,

    One thing no one has mentioned is that you can drag-drop files from Windows Explorer right onto an empty project you have open in the Project manager. You can even add files such as Word documents with notes or documentation, Exce. files that you are using as templates for Automation, and anything else you want. The non-Fox files will show up on the Other tab and if you double-click on them they will open in their default applications.



  • Joris van de Klundert

    You can do it in either order. If you write the code first and then create the project, just add the main program to the project and build the project to have all the others pulled in.

    Tamar

  • about a project in VFP9