Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Check to see if a table exists without knowing its locat
Message
De
04/05/2005 15:41:45
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01010987
Message ID:
01011014
Vues:
25
Great! Thank you. Of course for this to work we would have to set the path to the location where the database is located.

>Something like this:
>
>open database ...
>?FILE(DBGETPROP(table_name,"TABLE","PATH"))
>
>>If I have a database: dbWorkFiles
>>
>>and I want to determine if one of its tables physically exist I would typically store a common path to the data directory to a variable like 'ddir' and then do:
>>
>>IF FILE (ddir+'mytable.dbf')
>>
>>However, if I do not know exactly where the tables are located - lets say I open them with:
>>
>>use dbWorkFiles!mytable
>>
>>then how can I check to see if the table exists or not if I do not know where they are located? Is that possible? It could be a part of the database but not physically exist...
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform