Type Mismatch in For Loop in ASP (1 Viewer)

SteveClarkson

Registered User.
Local time
Today, 18:02
Joined
Feb 1, 2003
Messages
439
HELP?!?

I am rather out of my depth in a little project I am tinkering with, and would SERIOUSLY appreciate any help you could offer!

I have attached (sorry, wouldn't let me attach it as ASP - have had to copy the code into a DOC) the page I am working on. The idea is that you can select multiple items from the list box, then they will appear in a list on the "gift certificate".

However, whenever I run it, I just get a "type mismatch" error.

Thank you very much indeed in anticipation! :)
 

Attachments

  • index.doc
    28 KB · Views: 274

Sergeant

Someone's gotta do it
Local time
Today, 13:02
Joined
Jan 4, 2003
Messages
638
Look in your For loop...you forgot to put an '=' or Response.Write in front of the array...
Code:
<%
    For I = LBound(arrSelectedItems) To UBound(arrSelectedItems)
%>
        <%[COLOR="Red"][B]=[/B][/COLOR]arrSelectedItems(I) %><BR>
<%
    Next
%>
 

SteveClarkson

Registered User.
Local time
Today, 18:02
Joined
Feb 1, 2003
Messages
439
Thank you very much indeed!

That is entirely my fault - I remember seeing it, and deciding it didn't belong there, so merrily went and deleted it!

Thanks again.
 

Users who are viewing this thread

Top Bottom