Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP Basics
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old September 3rd, 2003, 04:12 AM
Registered User
Join Date: Aug 2003
Location: , , Australia.
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Microsoft VBScript runtime (0x800A000D)

Error Type:
Microsoft VBScript runtime (0x800A000D)
Type mismatch
/scripts/processing.asp, line 245

================================================== ========

Dim addidx()

redim addidx(retcount)
retaddidx = "11549"

set rs = Server.CreateObject("ADODB.recordset")
rs.CursorType = 3
rs.CursorLocation = 3
rs.Open sql, Session("Conn"), adOpenDynamic

while not rs.eof
   if retaddidx = addidx(i) then <= Line 245 Type Mismatch
     addidx(i) = rs("IDX")
     com(i) = rs("COMPANY")
   end if
================================================== ======
Can i compare a string with an array element?
It gave me a type mismatch error.

Reply With Quote
  #2 (permalink)  
Old April 27th, 2006, 02:23 PM
Registered User
Join Date: Apr 2006
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts

You should try casting the array element:

if retaddidx = CStr(addidx(i)) then

hope that works
Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Microsoft VBScript runtime (0x800A0005) mail1 Classic ASP Basics 4 March 27th, 2008 03:42 PM
Microsoft VBScript runtime (0x800A0005) Swetz Classic ASP Components 0 May 14th, 2006 03:44 AM
Microsoft VBScript runtime (0x800A01B6) texasraven Classic ASP Basics 24 June 24th, 2004 06:22 AM
Microsoft VBScript runtime (0x800A0009) ppenn Classic ASP Databases 2 December 15th, 2003 01:15 PM

All times are GMT -4. The time now is 03:06 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.