Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
EXE Compile Command
Message
 
 
To
28/07/2001 11:50:56
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00536456
Message ID:
00536862
Views:
9
>Dear Hilmar, Just to claify -- I meant the command COMPILE is part of the code in the executable. The book clearly says that it will not work. However, on my machine it works very well. Lew

Lewis,

This is excerpt from VFP 6.0 SP3 help file VFPSP#.CHM
-----------------------------------------------------------------------
COMPILE Command Enhancements
The COMPILE command is now enabled in the run time so that your applications can generate and compile a program (.prg) file. You can use the STRTOFILE( ) function to output your code to a program file. Run time compilation works with all files supported by the COMPILE command including programs, forms, classes, labels, reports, and databases.

There are a few differences between the compiler in the development product and in the run time:

The "?" switch of the COMPILE command has been disabled for run time since unattended automation servers (.dlls) do not allow modes involving user input.


The SET DEVELOPMENT command has no effect in the run time.


With the full product, SET DEVELOPMENT causes Visual FoxPro to compare the creation date and time of a program with those of its compiled object file when the program is run. If SET DEVELOPMENT is set ON, the latest version is always executed — out-of-date programs are automatically recompiled. In the run time, you must explicitly call the COMPILE command to recompile source. This means that calling the DO command in your run time will never cause the PRG file to be recompiled. Also, with the run time, the DO command ignores the file extension and looks for a file with an .fxp extension, even if you specify a .prg.
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform