Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Simple - get a getfile string into open database comman
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00625219
Message ID:
00625223
Views:
11
>I am sure this is simple and may have something to do with macro substitution but I can't figure it...
>
>I normally open databases like this...
>
>open database myDataBase exclusive
>
>
>But say I use a getfile command to get the path and name of the database? I guess I would have to strip out the database name from the path so I would have two variables... strPath and strDBC
>
>My question is how do I open the database when I have it's name in a variable
>
>
>open database (strDBC) exclusive
>
>This doesn't work for obvious reasons...
>
>Thanks

Use name resolution. BTW, you don't have to strip path from the name of database.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform