>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