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!!