Information générale
Catégorie:
Gestionnaire d'écran & Écrans
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.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement