> Thank you very much. Please excuse my newbieness. I am Still confused. I want to set the database path such as "c:\mydata" in config.fpw. In the main prg I want to read that value and assign it to a public variable so that in each form it will set the proper Cursor location. That way, if the database moved I could just edit the config.fpw and away I go. I am not sure what I have to add to config.fpw to do this.
>
You are welcome. In your config.fpw, you can add a line:
path = "c:\mydata"
As for the Public variable: you would not need it, if you'd add a line somewhere early in your "main.prg":
Open yourDatabase Shared
That would work because the DBC would be found because the Data folder is in the search path.
Afterwards, in your form.DataEnvironment code you can use DBC() to determine the path again:
Local lcDataPath
SET DATABASE TO yourDatabase
lcDataPath = JUSTPATH(DBC())
&& your properties-assign code follows
(BTW, you would not necessarily need to reassign dataenvironment properties as long as your dev testdata folder does not exist on the client machine at runtime)
hth
-Stefan