Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Startup Program for each project.

Status
Not open for further replies.

mep1

IS-IT--Management
Jun 18, 2003
67
0
0
US
Hi,
Is it possible to define a separate startup program for each project in the VFP development environment? I have been setting the Startup Program path in Tools\Options\File Locations, but this will affect every project I open.
If not, I guess I could try determining the calling project , and then start the appropriate startup program. Thanks for the help.

mep
 
mep1

I'm not sure if this is what you are talking about, but I have a project where I keep 4 or 5 services (small programs that run a services) and depending on the one I'm working on I make the main program for that service "set to main" in the project manager, and switch back and forth depending on the one I'm working on.

Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Basically I want to have a startup program that forces a user to logon when they open the development environment and starts an audit record for the user. I would like each project to have a seperate audit trail.
I was thinking of having a separate startup program for each project that would set the path and audit table correctly. However, I am beginning to feel that this method may not work.
 
Hi mep,

I'm also not sure what you mean. Every FoxPro project already has its own startup program (or other module).

Jim
 
mep1

Ok, what we use is an INI file, actually the developement environment bypasses user logins etc..., but you could specify anything you want to do, including tracking etc...

Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Jim and Mike,
> Every FoxPro project already has its own startup program (or other module).

Where is the startup program located?
Can you be a little more specific on how you use the initialization file as the development environment loads?

Thanks for the help

MEP
 
Whoever creates the project names a program or form as the startup module with the "Set main" option in the Project Manager. This program can be anywhere. To see what the startup program is for a particular project open the Project Manager for that project and look for the program highlighted in bold.

Jim
 
mep,
Another thing you may want to check into is the Project Hook. If you define the project to use a PH, then you can put code in it in it's methods to do a number of interesting things. e.g. In the Init() you could require a login or audit who's opening it. In the BeforeBuild() you could reset file attributes (if you are using source control for example) or "fix" all the report files by clearing out the default header information, or even backup the changed files.

Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top