Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Database location priority
Message
From
04/03/2004 08:01:08
 
 
To
04/03/2004 06:46:34
Arlei Silva
Chevron Oronite Brasil Ltda.
Capuava, Brazil
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00883015
Message ID:
00883035
Views:
13
>Hi Welington,
>
>Thank you for replying,
>I could do that (put the path and the default folder at the startup), but I will have to change it anytime I must change and test something in the development time.
>
>I'm looking for something that works at both times (development and production).
>
>Regards,


Arlei:

You could determine location at runtime by checking to see if you are running a production EXE or you are running from inside the VFP IDE
If Version(2) > 0
   * development
Else
   * production
Endif
Or you could similarly define a method in your application object that determines what constitutes development, by any combination you want, using maybe Version(2) plus looking to see if you are running from your workstation - Sys(0) or a certain system memvar is set or whatever
If oApp.InDevelopment()
   * development
Endif
Then you can set your environment accordingly.

In my development system I go one step earlier and have the program setup routine see that it is running in the development workstation and present a MessageBox() asking if I want to run with Development or Production data. Users do not see this as they are not running in my PC and from the VFP IDE.

HTH


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Previous
Reply
Map
View

Click here to load this message in the networking platform