Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Opening a database in a folder other than the app folder
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00482805
Message ID:
00482808
Vues:
11
Hi Allan,

>In my command window, if I type:
>
>open database "e:\switch rec test\data\admin1"
>
>. . . the database opens
>
>However, if I type the following:
>
>ctest = "e:\switch rec test\data\admin1"
>open database &ctest
>
>. . . I get the error "command contains unrecognized phrase . . .
>
>I want to be able to open a database that isn't in the program path - is there a better way to do this? Of course I won't be hard coding the path - the example above is just for illustration.

The problem is the space in your path.
open database (cTest)
should work.
HTH,
Bill Armbrecht
VFP MCP
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform