Peter,
First, you can do it in one line
set procedure to c:\myapp\mymain.prg
Second, every time you make changes to mymain.prg Foxpro implicitly issues Set Procedure To command to allow access to it.
I would create a small program located in the path named say SetProc
Function SetProc
IF Not ("\MYMAIN.FXP" $ Set("Procedure"))
Set Procedure to c:\myapp\mymain.prg
ENDIF
Endfunc
and than include call to it in a Load of the forms you are testing.
It'll be ignored in exe because because procedure file would be set allready.
>I have a program file... mymain.prg that has some functions I need on forms. The final app will built to an exe. I realize after I BUILD the exe and run it, the app works fine. But as I am testing using the Project manager I am not so lucky.
>
>As I am working on forms, button commands, etc, I need to call these functions. The only way I can get the "prg" file to be recongnized is to type:
>
>set default to "c:\myapp
>set procedure to mymain.prg
>
>Is there a way to ensure this is done during these testing processes WITHOUT having to type these two lines? I haven't found the pattern yet but as I am changing function lines in the PRG or working on the form, when I "run" it to test it, I often have to REDO those lines above.
>
>What am I missing here?
>
>Thanks
--sb--