Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Simple - get a getfile string into open database comman
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00625219
Message ID:
00625223
Vues:
9
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform