Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling Functions in Prg while testing forms????
Message
 
 
To
25/06/2001 20:56:04
Peter Brama
West Pointe Enterprises
Detroit, Michigan, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00523366
Message ID:
00523379
Views:
8
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--
Previous
Reply
Map
View

Click here to load this message in the networking platform