Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Check to see if a table exists without knowing its locat
Message
From
05/05/2005 10:29:38
 
 
To
05/05/2005 10:14:56
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01010987
Message ID:
01011290
Views:
14
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"
Previous
Reply
Map
View

Click here to load this message in the networking platform