Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Ciprian Zaharia
  Where is Ciprian Zaharia?
 Brossard
 Canada
 Ciprian Zaharia
 To: Marlon Levy
  Where is Marlon Levy?
 
 Jamaica
 Marlon Levy
 Tags
Subject: RE: Dataenvironment
Thread ID: 78653 Message ID: 78661 # Views: 1 # Ratings: 0
Version: Visual FoxPro 9 Category: Forms
Date: Thursday, October 06, 2005 5:26:19 PM         
   


> > HI
> >
> > 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 :
>
>
this.cursor1.database=cDataBasePath
> &&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
> marlonlevy@gmail.com




I was thinking at something like that but you explained better than my mind.Thank you

Ciprian Zaharia

ENTIRE THREAD

Dataenvironment Posted by Ciprian Zaharia @ 10/6/2005 3:54:37 PM
RE: Dataenvironment Posted by Marlon Levy @ 10/6/2005 5:10:13 PM
RE: Dataenvironment Posted by Ciprian Zaharia @ 10/6/2005 5:26:19 PM
RE: Dataenvironment Posted by Ken Murphy @ 10/7/2005 4:10:21 PM