Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
EXE Compile Command
Message
 
 
À
28/07/2001 11:50:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00536456
Message ID:
00536862
Vues:
8
>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--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform