|
-
Aug 11th, 2004, 04:18 AM
#1
Thread Starter
Hyperactive Member
Type Mismatch problem
Hi,
I'm calling from ASP a function in MTS COM which was written in VB6 as:
Public Function GetStartTime(ByVal pstrClassCode As String) As ADODB.Recordset
and I call it in ASP like:
set rs2 = com.GetStartTime(rs.Fields("camtcd_class_code"))
The problem is that, if I don't use cstr() to enclose the parameter in asp, I will get the type mismatch error.
I read from msdn that, this error will occur when passing byref parameter, it must be defined as variant type. However, this seems does not match to my situation, can anyone tell me the problem?
Thx!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|