如何解决
cmd.Parameters.Add(New OleDbParameter(RETURNVALUE, OleDbType.Integer, 4, ParameterDirection.ReturnValue, False, 0, _0, String.Empty, DataRowVersion.[Default], Nothing))
错误 77 重载决策失败,原因是没有可访问的“New”能够不经收缩转换即可被调用:
'Public Sub New(parameterName As String, dbType As System.Data.OleDb.OleDbType, size As Integer, direction As System.Data.ParameterDirection, precision As Byte, scale As Byte, sourceColumn As String, sourceVersion As System.Data.DataRowVersion, sourceColumnNullMapping As Boolean, value As Object)': 与参数“precision”匹配的参数从“Boolean”类型转换为“Byte”类型。
'Public Sub New(parameterName As String, dbType As System.Data.OleDb.OleDbType, size As Integer, direction As System.Data.ParameterDirection, precision As Byte, scale As Byte, sourceColumn As String, sourceVersion As System.Data.DataRowVersion, sourceColumnNullMapping As Boolean, value As Object)': 与参数“scale”匹配的参数从“Integer”类型转换为“Byte”类型。
'Public Sub New(parameterName As String, dbType As System.Data.OleDb.OleDbType, size As Integer, direction As System.Data.ParameterDirection, precision As Byte, scale As Byte, sourceColumn As String, sourceVersion As System.Data.DataRowVersion, sourceColumnNullMapping As Boolean, value As Object)': 与参数“sourceColumn”匹配的参数从“Integer”类型转换为“String”类型。
'Public Sub New(parameterName As String, dbType As System.Data.OleDb.OleDbType, size As Integer, direction As System.Data.ParameterDirection, precision As Byte, scale As Byte, sourceColumn As String, sourceVersion As System.Data.DataRowVersion, sourceColumnNullMapping As Boolean, value As Object)': 与参数“sourceVersion”匹配的参数从“String”类型转换为“System.Data.DataRowVersion”类型。
'Public Sub New(parameterName As String, dbType As System.Data.OleDb.OleDbType, size As Integer, direction As System.Data.ParameterDirection, precision As Byte, scale As Byte, sourceColumn As String, sourceVersion As System.Data.DataRowVersion, sourceColumnNullMapping As Boolean, value As Object)': 与参数“sourceColumnNullMapping”匹配的参数从“System.Data.DataRowVersion”类型转换为“Boolean”类型。
'Public Sub New(parameterName As String, dbType As System.Data.OleDb.OleDbType, size As Integer, direction As System.Data.ParameterDirection, isNullable As Boolean, precision As Byte, scale As Byte, srcColumn As String, srcVersion As System.Data.DataRowVersion, value As Object)': 与参数“precision”匹配的参数从“Integer”类型转换为“Byte”类型。
'Public Sub New(parameterName As String, dbType As System.Data.OleDb.OleDbType, size As Integer, direction As System.Data.ParameterDirection, isNullable As Boolean, precision As Byte, scale As Byte, srcColumn As String, srcVersion As System.Data.DataRowVersion, value As Object)': 与参数“scale”匹配的参数从“Integer”类型转换为“Byte”类型。 F:\毕业\学生成绩管理系统\app_code\sqlhelper.vb 500 28 F:\毕业\学生成绩管理系统\
--------------------编程问答-------------------- --------------------编程问答-------------------- 括号里参数报了一堆错误啊。。 --------------------编程问答-------------------- Interger类型的参数,没有必要设置这么多参数
cmd.Parameters.Add(new OracleParameter("UserNo", UserID));
类似这样就够了
补充:.NET技术 , ASP.NET