troubleshooting Question

type mismatch error filter vbscript in ASP

Avatar of pborregg
pborreggFlag for United States of America asked on
9 Comments2 Solutions1194 ViewsLast Modified:
Here's the Code:

            dim a(2)
            dim b
            a(0) = "Microsoft"
            a(1) = "Adobe"

I want to SIMPLY Filter all items in a FOR NEXT loop to be either DOC or PDF.

Here's what I wrote:

     'Display a list of files.
     for each item in folder.Files
       url = MapURL(item.path)

******************************* This is ONLY the code I need to have working please.

            dim a(2), b
            a(0) = "Microsoft"
            a(1) = "Adobe"


              Response.Write("<li><input id='chooseItem' name='chooseItem' type='checkbox' value='"+item.Name+"' onmouseup='javascript:listItems(this.value)'/><a href=""" & url & """ target='_blank'>" & item.Name & "</a> - " _
                   & item.Size & " bytes, " _
                   & "last modified on " & item.DateLastModified & "." _
                   & "</li>" & vbCrLf)

I found the EXAMPLE here--->>>


I keep getting TYPE MISMATCH on 'a'.


I'm developing in DREAMWEAVER and writing an ASP Page.

THIS IS SUPPOSED TO WORK.... Anyone have any thoughts?

Join our community to see this answer!
Unlock 2 Answers and 9 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 9 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros