Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Executing .FXP file without a project?
Message
De
06/04/2009 00:20:11
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01392936
Message ID:
01393382
Vues:
48
>Hi,
>
>I think I have done it before but want to be sure that it will work. I need to send a customer a small program (.PRG) to fix some data. I created this small .PRG, compiled it. Now I want to be sure that when I send them the MyFix.FXP file they can just run it and it will work. Or do I have to create a project for this one .PRG?

If you are doing it this way (below) then yes you can.

Your original EXE must have code in it similar to this:
DO MyExternalProgram.PRG
Now all you need to do is fix the code in MyExternalProgram.PRG and compile it to an FXP -
COMPILE MyExternalProgram.PRG
and put the file "MyExternalProgram.FXP" in the application path.

Now when the original EXE is run it will execute the above Do and the new code will be run.

Remember that you must send the FXP rather than the PRG even if your code says do myprogram.prg. Your VFP EXE will only run the FXP and not the prg. If you only give thePRG you will get File Not found error.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform