From: Ciprian Zaharia
To: Marlon Levy
Visual FoxPro 9
Thursday, October 06, 2005 5:26:19 PM
This message was rated by:
> > May be someone can help me.I made an foxpro aplication with several forms.
> > In every form I'm using in dataenvironment a lot of tables and cursor adapters
> > Each of them is referring my database on C: drive.When I tried to move on a network with a diferent letter drive i observed horrified that it searching for
> > data on C: drive.There is a global solution for that ?
> > Thank you for any advice
> > Ciprian Zaharia
> You will need to setup a Global variable that stores the location of your data directory. in the BeforeOpenTables event of the dataenvironment you must set the database property of all the cursors to this global variable as follows :
> &&where cDatabasepath is your variable storing your location.
> what would also be good is if you provide some form of interface that allows the user to set this information in the event that the folder is moved again.
> Marlon Levy
I was thinking at something like that but you explained better than my mind.Thank you
Posted by Ciprian Zaharia @ 10/6/2005 3:54:37 PM
Posted by Marlon Levy @ 10/6/2005 5:10:13 PM
Posted by Ciprian Zaharia @ 10/6/2005 5:26:19 PM
Posted by Ken Murphy @ 10/7/2005 4:10:21 PM