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
05/05/2005 10:29:38
 
 
À
05/05/2005 10:14:56
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:
01011290
Vues:
15
Thank you, this seems to work regardless of sys(2003) or set('path'):

set DEFAULT TO c:\scprofiler\profiler\progs
set PATH to c:\scprofiler\profiler\progs
OPEN DATABASE c:\profiler\data\dbProfiler
? FILE(FULLPATH(DBGETPROP('ARCHEADR',"TABLE","Path"),DBC()))
? FILE(FULLPATH(DBGETPROP('ACCTPHON',"TABLE","Path"),DBC()))


>>Very good points. Thank you Alan. However, I noticed that it is a relative path in respect to the dbc location. I will have to do some testing...
>>
>
>? FILE(FULLPATH(DBGETPROP(table_name,"TABLE","Path"),DBC()))
>
.·*´¨)
.·`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
Répondre
Fil
Voir

Click here to load this message in the networking platform