Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing Path for Dataenvironment
Message
 
À
12/07/2000 18:02:31
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00391559
Message ID:
00391578
Vues:
9
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
Fil
Voir

Click here to load this message in the networking platform