Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

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

74 views
Skip to first unread message

Chad Leigh

unread,
Feb 26, 1999, 3:00:00 AM2/26/99
to
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
ch...@pengar.com

Peter Olsen

unread,
Feb 26, 1999, 3:00:00 AM2/26/99
to
Chad Leigh wrote in message <7b776e$68g$1...@pyrite.mv.net>...

>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


David E. Stockbridge

unread,
Feb 26, 1999, 3:00:00 AM2/26/99
to
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>


0 new messages