Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating a simple Executable (EXE) from a form (SCX)

Status
Not open for further replies.

gguerra3

IS-IT--Management
Feb 1, 2006
17
US
I have a simple form that runs 1 report, creates a couple of free tables and accesses some other tables which are part of an another application (written in foxpro). The other tables are associated with databases.

I need an executable that will run with the vfp runtime files on another machine.

My question is, do I need to create a project and add the form, report and tables.. (I have not done this since Fox2.6 where you did have to add everything to a project in order to create an EXE file.

If I add the tables that are part of another application to my project will it affect that other application in any way?

Thanks in advance
 

Yes, you do need to create a project to create an EXEcutable.

You don't have to add your tables to the project, and if you do, you should exclude them, or they would become read-only upon compiling into EXE.

If they are excluded, it shouldn't affect other applications that use them - buty it also depends on the way you handle them in your application, and the way other applications handle them.
 
I created a screen cast for part of the Learning Visual FoxPro series that will show you exactly how to create a simple application with Visual FoxPro 9.

To answer your question, yes you'll need to create a project, add your files to it, set your form or a prg as main, and compile it. Adding the other application's database to your project will not inherently effect that database unless you edit it of course (manually or in code). Databases/tables are excluded from being compiled into a VFP application by default. Adding them to the project serves to show/enforce the dependency and also to allow quick and easy access for the developer as they are working on the project.

boyd.gif

SweetPotato Software Website
My Blog
 
Thanks for the replies.. I think I will not add the tables to the project just to be safe..

Oh and while we are on the subject, what happened to

BUILD EXE STANDALONE

no more standalone??
 

You can still do BUILD EXE, but you still need a project as your starting point. The syntax is BUILD PROJECT <EXE filename> FROM <project file name>. I don't know where STANDALONE comes from (unless that's the name of your EXE).

Mike


__________________________________
Mike Lewis (Edinburgh, Scotland)

My Visual FoxPro site: www.ml-consult.co.uk
 

Mike, BUILD EXE still exists (at least in VFP6), along with BUILD PROJECT, only in older versions it had STANDALONE and EXTENDED optional clauses - they are gone no. The syntax is BUILD EXE <ExeFileName> FROM <ProjectName> [RECOMPILE].



 

gguerra3,
Even in the old FoxPro 2.0, there was FROM <project> clause in the syntax - required, not optional. I've just looked it up in the manual:

BUILD EXE <exe file> FROM <project> [STANDALONE] [EXTENDED]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top