类型不匹配为什么会出现类型不匹配?
错误类型:
Microsoft VBScript 运行时错误 (0x800A000D)
类型不匹配: 'MyObject.InsertIntoStudent'
/ctest/register.asp, 第 30 行
MyObject.InsertIntoStudent函数的返回值是Boolean,具体定义
Public Function InsertIntoStudent(sqlvalue As String) As Boolean
Dim strSql As String
strSql = "Insert Into student values (" + sqlvalue + ")"
conn.Execute strSql
If Err.Number <> 0 Then
InsertIntoStudent = False
Else
InsertIntoStudent = True
End If
End Function
第 30 行是asp页面的
dim flag
flag=MyObject.InsertIntoStudent(sql)
如果单独执行MyObject.InsertIntoStudent(sql)没有任何错误
这是什么原因呀,郁闷