Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing Path for Dataenvironment
Message
 
To
12/07/2000 18:02:31
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00391559
Message ID:
00391578
Views:
10
Craig, I set a property in the startup program, called CurDataSource, to equal the correct database. Then, in the BEFOREOPENTABLES of the form's dataenvironment, I do this:

Local i
lnCursorCount=Amembers(laCursors,This,2)
For i=1 to lnCursorCount
lcCurName="This." + laCursors[i] + ".database"
&lcCurName=CurDataSource
Endfor


But before the form can load properly I get an "Error instantiating cursor object: Cannot find (wrong path here)". I tried adding a "SET DATABASE TO CurDataSource" but the form is still looking for the table in the "exes" directory, not the "data" directory where the dbc is.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform