Using main.fxp instead main.prg

Topics: User Forum
Jul 11, 2014 at 3:02 PM
There is a possibility to use only main.fxp instead main.prg (to reserve code written) ?

I tried to delete .prg files but i get an error (can't find main.prg) when visit the page.
Coordinator
Jul 12, 2014 at 6:59 AM
I don't think so. At this time, code located at MAIN.PRG is ran using EXECSCRIPT(), so the actual source code its required.
Coordinator
Jul 13, 2014 at 11:45 AM
You could place app code in a separate library that is called from main.prg. The library would not need the source code on the target site.
Marked as answer by mr_ocean on 7/14/2014 at 1:22 AM
Jul 14, 2014 at 8:23 AM
claudefox wrote:
You could place app code in a separate library that is called from main.prg. The library would not need the source code on the target site.
I try to call .FXP file in the "main.prg" (with all contents of main.prg) but it don't work. What is the right way to apply this method? I need to make a dll files?
Jul 14, 2014 at 9:22 AM
Edited Jul 14, 2014 at 9:22 AM
Ok, i resolved this problem. I made a .app files with my code and included it in main.prg with "DO" command. It works fine!

Thanks for your help!