Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Executing .FXP file without a project?
Message
From
06/04/2009 00:20:11
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01392936
Message ID:
01393382
Views:
47
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform