TypeMismatch Error

Results 1 to 3 of 3

Thread: TypeMismatch Error

  1. #1
    Tanvi Guest

    Default TypeMismatch Error

    Hi,<BR>Iam facing an error with a commerce site Iam trying,<BR>In activex dll project,I&#039ve &#039listdepartment&#039 method which returns recordset from &#039Departments&#039 table.The arguement for this listdepartment is passed as Byval.<BR>in my Visual interdev project(I&#039ve referenced this dll in visual interdev project and the dll was functiong fine) in dept.asp file I&#039ve given the following code <BR><BR>&#060;%<BR>Dim Department<BR>Set department = visits.catalogs.listDepartment(Request("id"))<BR>< BR>If not Department.EOF Then<BR> Response.Write "&#060;font class=medheading&#062;"<BR> <BR> <BR> Response.Write Department("name")<BR> Response.Write "&#060;/font&#062;"<BR> Response.Write ""<BR><BR><BR>Department.close<BR>Set Department = Nothing<BR><BR><BR>%&#062;<BR><BR>Iam getting the following error<BR><BR>MallCommerce error &#039 800a000d&#039 <BR><BR>Type mismatch <BR><BR>/Modelcomm_local/dept.asp, line 14 <BR><BR>Could anybody help me how to get out of this problem?<BR>ThankYou

  2. #2
    Igal Vorobeychik Guest

    Default Custing your parameters

    Type mismatch <BR>/Modelcomm_local/dept.asp, line 14 <BR>If it happend in this line:<BR>Set department = visits.catalogs.listDepartment(Request("id"))<BR>< BR>than make sure that Request("id")is in proper type .It&#039s beter to use Cint(Request("id"))) or ather casting because all requests are Strings.<BR><BR><BR>

  3. #3
    Tanvi Guest

    Default RE: Custing your parameters: Still returning error

    Dear,Igal Vorobeychik<BR>I tried with your idea And found no change.<BR>ThankYou

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts