Dataset.Tables property

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Can someone tell me what I'm doing wrong here:

DataTable^ table = safe_cast<DataTable^>myDateSet->Tables[0];

I am getting a compilation error.

Rasika.
 
DataTable^ table = safe_cast<DataTable^>(myDateSet->Tables[0]);

or just

DataTable^ table = myDateSet->Tables[0];

seem to work fine.
 
Great, thank you.

James Park said:
DataTable^ table = safe_cast<DataTable^>(myDateSet->Tables[0]);

or just

DataTable^ table = myDateSet->Tables[0];

seem to work fine.

Rasika WIJAYARATNE said:
Can someone tell me what I'm doing wrong here:

DataTable^ table = safe_cast<DataTable^>myDateSet->Tables[0];

I am getting a compilation error.

Rasika.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top