The Classic "Type mismatch"

Results 1 to 3 of 3

Thread: The Classic "Type mismatch"

  1. #1
    Raleigh Guest

    Default The Classic "Type mismatch"

    I&#039ve got a simple problem whereas I must have overlooked something. I have This:<BR><BR>resadd = Request.form ("add" & T) <BR>resremove = Request.form ("remove" & T)<BR><BR>I need to multiply these 2 variables in a loop - and<BR>resadd*resremove simply does not work. Both vars will always pass numerical values - How can I specify these as integers (I know "as integer" and int won&#039t work) Did I go about this method the wrong way???<BR><BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: The Classic

    intresult = CInt (resadd) * CInt (resremove)

  3. #3
    raleigh Guest

    Default RE: The Classic

    Derek:<BR><BR>Thanks for the tip - storing my result variable as you mentioned and replacing this variable in my code is yielding:<BR><BR>Type mismatch: &#039Cint&#039 Where I have:<BR><BR>intresult = CInt (resadd) * CInt (resremove) <BR><BR>

Posting Permissions

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