I have been assigned the task of updating some code which was written in an older version of vb. I am unfamiliar with the code and havent programmed in vb in quite a while.
This function is giving me a syntax error. How would you suggest to fix this function?
Code:Public Function bindthissql_ODBC(ByVal fds As Object, ByVal fsql As Object) As Object New OdbcDataAdapter(StringType.FromObject(fsql), Me.dbconn).Fill(DirectCast(fds, DataSet), "Thedata") Return New DataView(DirectCast(LateBinding.LateGet(fds, Nothing, "Tables", New Object() { "Thedata" }, Nothing, Nothing), DataTable)) End Function




Reply With Quote