Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New to the CF scene
    Join Date
    Nov 2010
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Error message - what's wrong?

    Can anyone help me with the following error message and correlating script please. I think it's just a simple omission. Any help appreciated. Thanks

    Microsoft VBScript compilation error '800a0400'

    Expected statement

    /shop$db.asp, line 3083

    end sub
    ^



    sub ShopWriteHeaderBox (msg)
    %>
    <div class="comment_title fontbold"><%=msg%></div>
    <div class="comment_text">
    <div class="blog_review_container" >
    <%
    end sub

    sub ShopWriteFooterBox (yesbr)
    %>
    </div>
    </div>
    <%
    if lcase(trim(yesbr)) = "yes" then
    %>
    <br />
    <%
    end if
    end sub

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    18,302
    Thanks
    203
    Thanked 2,562 Times in 2,540 Posts
    This is the JavaScript forum.
    You should post in a forum appropriate to VBScript.

    It is your responsibility to die() if necessary….. - PHP Manual

  • #3
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    27,596
    Thanks
    80
    Thanked 4,631 Times in 4,594 Posts
    Actually, should simply post in the ASP forum.

    /shop$db.asp, line 308
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.

  • #4
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    27,596
    Thanks
    80
    Thanked 4,631 Times in 4,594 Posts
    FWIW, I don't think the error is in that code. I think the *cause* of it is above that point in the code. I don't see anything obviously wrong there.

    When you repost, show more code. Maybe about 30 to 50 lines, ending at the problem line.
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.

  • Users who have thanked Old Pedant for this post:

    kezfin (11-17-2010)

  • #5
    New to the CF scene
    Join Date
    Nov 2010
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Thanks for the reply,
    Last edited by kezfin; 11-19-2010 at 12:00 AM.

  • #6
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    27,596
    Thanks
    80
    Thanked 4,631 Times in 4,594 Posts
    (1) *PLEASE* move your posting to the ASP forum. This is NOT the appropriate forum for this topic.

    (2) I tried all the code you posted, and it worked fine. So, again, whatever the problem is it must be *before* all this code.
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •