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.
 
Back
Top