General information
Category:
Forms & Form designer
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only