>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
Else
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()
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