Groups | Blog | Home
all groups > vb.net data > january 2007 >

vb.net data : If Exists Datatable



William (Bill) Vaughn
1/10/2007 10:21:10 AM
Try to test for Nothing in VB.
If object is Nothing then...

--
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
Microsoft MVP
INETA Speaker
www.betav.com/blog/billva
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________
Visit www.hitchhikerguides.net to get more information on my latest book:
Hitchhiker's Guide to Visual Studio and SQL Server (7th Edition)
and Hitchhiker's Guide to SQL Server 2005 Compact Edition (EBook)
-----------------------------------------------------------------------------------------------------------------------

[quoted text, click to view]

Kevin Humphreys
1/10/2007 5:49:29 PM
To Whom It May Concern,
Is it possible to check if a data table is created?

E.G.
If not exists(DataTable("Basket")) then
Dim Table1 As DataTable
Table1 = New DataTable("Basket")
End

If not exists(DataTable("Basket")) then
'Work with existing datatable.
End

Any help is appreciated.
Kevin.

AddThis Social Bookmark Button