how can i Check if DataTable exist ?

how can i Check if DataTable exist ?

am 19.11.2007 21:19:01 von tvin

Hello,

i want to check if DataTable exist so i don't create new one

otherwise i have to create new DataTable.

i'm using vb.net

Please can you help me to know if there is any code for this test.

Thanks

Tvin

Re: how can i Check if DataTable exist ?

am 20.11.2007 10:42:19 von John Sheppard

loop through all the tables in the dataset...

dim ds as dataset
dim dt as datatable
for each dt in ds
if dt.tablename="tablename" then messagebox.show("bobs ur uncle")
next


Something like that anyway, im no expert

"tvin" wrote in message
news:F7F419E2-28C5-4F03-A272-750160596878@microsoft.com...
> Hello,
>
> i want to check if DataTable exist so i don't create new one
>
> otherwise i have to create new DataTable.
>
> i'm using vb.net
>
> Please can you help me to know if there is any code for this test.
>
> Thanks
>
> Tvin