Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VB.Net Get Table Name Off DataSet
Message
From
12/05/2009 09:02:51
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01399330
Message ID:
01399361
Views:
46
>This works in C#.
>
>
>string TableName = DS.Tables[0].TableName;
>
>
>
>Dim Table As String
>Table = DS.Tables[0].TableName
>
>
>In VB I get a compilation error "Value of type 'System.Data.DataTableCollection' cannot be converted to 'String'"
>
>How do I get the name of a table off of a dataset?

What is the data type of the TableName property?
Very fitting: http://xkcd.com/386/
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform