Value of type 'System.Data.DataView cannot be converted to '1-dimentional array of System.Data.Dataview'.Hoping someone can help me out with this. My goal is to be able to make a function call from anywhere in the app, like:
Imports System.Data.SqlClient Imports System.Data.OleDb Public Class GetDataViewObject Public Shared Function GetDataView(ByVal tcSQLCMD As String) As Data.DataView() ' Define The Command Object Dim oCommand As New OleDbCommand() oCommand.CommandText = tcSQLCMD oCommand.CommandType = CommandType.Text 'Connect to Database oCommand.Connection = Globals.AppGlobals.oConn Dim goView As New Data.DataView() 'Load the DataView goView = VFPToolkit.vfpData.SqlExecute(Globals.AppGlobals.oConn, oCommand, "DataAlias") VFPToolkit.vfpData.SqlDisConnect(Globals.AppGlobals.oConn) Return goView <<<<=== Error on this line End Function End Class