A
Anibal
Hi,
The following code throws me an Error, i use a method to bring a DataTable
object and i want to asigne it to a Strongly Typed DataTable, but VB doesn't
allow me.
How can i do this right? And if it couldn't be done, then wich would be an
equivalent solution.
Thank you very much.
'FoldersDataTable: Inherits from DataTable.
Dim Data As New FoldersDataTable
'BringDataTable: Retrives a DataTable object
Data = CType(BringDataTable("Select * From Folders"), FoldersDataTable)
'Error: 'InvalidCastExeption'
The following code throws me an Error, i use a method to bring a DataTable
object and i want to asigne it to a Strongly Typed DataTable, but VB doesn't
allow me.
How can i do this right? And if it couldn't be done, then wich would be an
equivalent solution.
Thank you very much.
'FoldersDataTable: Inherits from DataTable.
Dim Data As New FoldersDataTable
'BringDataTable: Retrives a DataTable object
Data = CType(BringDataTable("Select * From Folders"), FoldersDataTable)
'Error: 'InvalidCastExeption'