>Hi,
>
>I have an app that builds a prg with low level file functions and then compiles and runs it. This works fine when testing from within the fox environment, however when built and run as a stand alone exe it fails at the COMPILE command (command not available).
>I have tried _VFP.DoCmd("COMPILE xyz.prg"), with the same result. The only limited success I have had is by using the FoxDoCmd() function within 'fpole.dll', but I am not sure how this function works on a machine without VFP6 installed. Does the client machine need to have fpole.dll and/or any other dll's registered in order for the automation to work?
>Any help on using fpole.dll or even better a more elegant solution would be much appreciated.
>
>Many thanks,
>Ian.
You can't currently compile in the runtime. It has been reported that an upcoming release of VFP will support this. In the meantime, you can look at the Codeblock routine in the files section here on the UT.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer