Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Checking container contents 2

Status
Not open for further replies.

saleemas

Programmer
May 9, 2003
6
MY
Greetings;
In Visual FoxPro 6.0 , how can you check whether a table has been added to a database container?

Thanks,
Ryan
rstevens@inspiritec.org
-
 
Hi

SELECT 0
USE myTable
myDBC = CURSORGETPROP("DATABASE")

Now myDBC contains the name of the DBC. If this is empty, it is a free table.

:)

ramani :)
(Subramanian.G),FoxAcc, ramani_g@yahoo.com

 
I would open and search the container...


set exclusive off
use c:\mydatabase
locate for ObjectType="Table" .and. ObjectName="mytable"
if found()
? "MyTable is there"
else
? "Mytable is not there"
endif
use


note that all obectnames are in lowercase!


Regards

Griff
Keep [Smile]ing
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top