Printer Friendly Version

BellaOnline's ASP Editor

Type Mismatch Error

Type mismatch is a general error that happens when you try to stuff one type of value into a variable of another type.

Let's say you are working with numbers, adding and subtracting them. You're working with


And then at some point you say something like

HighVal = "XYZZY"

your operations are soon going to fail with a type mismatch error.

The easiest way to figure out where you went wrong is to do a response.write of each value along the path. That way you can see exactly what each value is set to, and figure out which one is getting in a "bad" value.

ASP Site @ BellaOnline
View This Article in Regular Layout

Content copyright © 2013 by Lisa Shea. All rights reserved.
This content was written by Lisa Shea. If you wish to use this content in any manner, you need written permission. Contact Lisa Shea for details.

| About BellaOnline | Privacy Policy | Advertising | Become an Editor |
Website copyright © 2016 Minerva WebWorks LLC. All rights reserved.

BellaOnline Editor