Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing Path for Dataenvironment
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00391559
Message ID:
00391582
Views:
13
PMFJI, but try getting an object reference before settig the proeprty. You also have to guard against other objects being om the dataenvironment (e.g. Relatios).

Changes in bold.
>
Local i
>lnCursorCount=Amembers(laCursors,This,2)
>For i=1 to lnCursorCount
<b>	lcCurName="This." + laCursors[i]
        locursor = eval(lcCurName)
        if type("locursor.Baseclass") = "C" ;
           and upper(locursor.Baseclass) = "CURSOR" then
 	   locursor.Database=CurDataSource
           locursor = .NULL.
        endif</b>
>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.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Reply
Map
View

Click here to load this message in the networking platform