Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling Functions in Prg while testing forms????
Message
 
 
À
25/06/2001 20:56:04
Peter Brama
West Pointe Enterprises
Detroit, Michigan, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00523366
Message ID:
00523456
Vues:
9
Hi!

Make a config.fpw file and specify it by the -c[path]config.fpw parameter in the shortcut for running VFP development environment. In the config file put the line:
command = DO [path]MyStart.PRG
Than make MyStart.PRG and put whatever code you need to initialize your development environment. You can define there shortcut keys, some macros using KEYBOARD command, specify procedure files (as you needed), open required project, etc etc.

HTH.

>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
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform