Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Tables in a database
Message
From
04/07/2002 12:33:24
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
To
04/07/2002 10:40:11
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00675301
Message ID:
00675376
Views:
9
Nerissa,

I guess INDBC() was a mistake of mine.

the problem is that indbc() checks if a OBJECT, not a file is in a DBC.

Better use CURSORGETPROP("Database",ALIAS()) as Gregoy Adam pointed out in message#675329.

Imagine you have the following tables

c:\myfolder\xyz.dbf
and
c:\myfolder\dbcfolder\xyz.dbf

and a database
c:\myfolder\dbcfolder\MyDBC.dbc


two tables right? The second one is in database MyDBC, the first not

if you do
open data c:\myfolder\dbcfolder\MyDBC.dbc

use c:\myfolder\xyz.dbf

?indbc(alias(),'TABLE'), 'Alias 1'
?indbc(dbf(),'TABLE'), 'dbf 1'
?CURSORGETPROP("Database",ALIAS()), 'Property 1'
use c:\myfolder\dbcfolder\xyz.dbf
?indbc(alias(),'TABLE'), 'Alias 2'
?indbc(dbf(),'TABLE'), 'dbf 2'
?CURSORGETPROP("Database",ALIAS()), 'Property 2'
you see whats happens.

Agnes

>Thanks a lot Agnes. INDBC() works for the application that I am doing now.
>
>Nerissa
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Previous
Reply
Map
View

Click here to load this message in the networking platform