Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Opening a database in a folder other than the app folder
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00482805
Message ID:
00482809
Views:
9
Hi Allan,

You need the quotes around the macro as well:

ctest = "e:\switch rec test\data\admin1"
open database "&ctest"

or

ctest = ["e:\switch rec test\data\admin1"]
open database &ctest

>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.
kenweber
GCom2 Solutions
Microsoft Certified Professional

Previous
Reply
Map
View

Click here to load this message in the networking platform