Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Test the presence of a DBF in a DBC
Message
From
01/10/2001 05:50:46
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
01/10/2001 05:44:44
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00562415
Message ID:
00562424
Views:
19
>>I found !
>>The answer is INDBC()
>>Sorry!
>
>Roland,
>At first look it's INDBC(). But be carefull it might trap you. Indbc() returning .t. doesn't mean the table you're querying is really in that DBC. Suppose you have 2 tables both named mytable.dbf where one is free actually.
>Indbc() would return .t. for both of them (there is mytable as a table object).
>You must explicitly check if it's the one you're looking for. You can do it :
>use myTable
>? dbf('mytable'),cursorgetprop('Database','mytable'),dbgetprop('MYTABLE','TABLE','PATH')
>Cetin
IOW :
DBC() == cursorgetprop('Database','mytable')
is a safer way.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform