VBScript with ASP using Len() function gives Type Mismatch error 
Author Message
 VBScript with ASP using Len() function gives Type Mismatch error

Hi All

I am on NT4 Wkstn using the PWS system to do some ASP prototype work.  I
just downloaded Option pack 4 today 2/26/1999 from the MS website.  I am on
NT 4 Wkstn SP3

I have an ASP page using VBScript that does

Dim x
x = len("hello")

inside of a bunch of other code.  This gives the following error:

Microsoft VBScript runtime error '800a000d'

Type mismatch: '[number: 11]'

/docSite/Default.asp, line 83

Any sort of  Len() call gives me a type mismatch '[number: 11]'

Len() is in my book and the MS online web page as a valid function.

So then I went and created a testLen.asp file which only has:

<%

Dim x

x = Len("hello")

%>

And this never returns to the browser!   A slow blue progress bar is made
across the bottom of my browser.

Any help and cues would be appreciated
Chad



Tue, 14 Aug 2001 03:00:00 GMT  
 VBScript with ASP using Len() function gives Type Mismatch error

Quote:

>Hi All

>I am on NT4 Wkstn using the PWS system to do some ASP prototype work.  I
>just downloaded Option pack 4 today 2/26/1999 from the MS website.  I am on
>NT 4 Wkstn SP3

>I have an ASP page using VBScript that does

>Dim x
>x = len("hello")

>inside of a bunch of other code.  This gives the following error:

>Microsoft VBScript runtime error '800a000d'

>Type mismatch: '[number: 11]'

>/docSite/Default.asp, line 83

Are the statement "x = len("hello")" at line 83 in the page
"/docSite/Default.asp"???
Else
Look for the actual line (83) in the page
--
mvh
IT-Konsulent
Peter Olsen
pol ad vejlehs dot dk


Tue, 14 Aug 2001 03:00:00 GMT  
 VBScript with ASP using Len() function gives Type Mismatch error
I also have NTWS 4 and PWS 4 installed. I reconstructed your test file
(below) and it ran without incident, displaying "Len=5" in the browser.
Either you are chasing the wrong phantom or there is something wrong with
your Option Pack installation. Did you reinstall your Service Packs (3 or 4)
AFTER you installed the Option Pack?

Dave

<%
Dim x
x = Len("hello")
%>
<HTML>
<BODY>
Len=<%=x%>
</BODY>
</HTML>



Tue, 14 Aug 2001 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Passing a Recordset to function gives Type mismatch (error 13)

2. Split Function gives Type Mismatch Error

3. error: type mismatch - when passed prameters into function in asp page

4. Type mismatch error using ADO / ASP / VB COM Component

5. Arrays - Type Mismatch error in ASP (VBScript)

6. Passing user data type to function causes type mismatch error

7. set .recordset gives type mismatch error

8. Treeview Nodes Gives Type Mismatch Error

9. COM error: eVB calling eVC object give type mismatch

10. ASP with VB6 Function Type Mismatch Problem

11. Using types in a different assembly given that the type may be used or not used

12. error using Len function

 

 
Powered by phpBB® Forum Software