ASP Expected end of statement

Posted on 2012-08-12
Last Modified: 2012-08-12
Hello Experts, I'm getting the following error message --

Line Number: 60
Description: Expected end of statement
Category: Microsoft VBScript compilation ASP Description: .Write("<link>" & arrSR(1,i)) & "/i/" & (arrSR(4,i)) & "/" & LCase(seofriend(arrSR(5,i))) & "-jobs-in-" & LCase(seofriend(arrSR(9,i))) & "</link>" & VbCrLf) ASP Number: -2146827263 ASP Column: 155

Line 60 reads --

.Write("<link>" & arrSR(1,i)) & "/i/" & (arrSR(4,i)) & "/" & LCase(seofriend(arrSR(5,i))) & "-jobs-in-" & LCase(seofriend(arrSR(9,i))) & "</link>" & VbCrLf)

Open in new window

I can't see the issue here, can you?

Question by:garethtnash
    LVL 17

    Assisted Solution

    You have an extra ")"

    LVL 52

    Assisted Solution

    by:Scott Fell, EE MVE
    Check your parentheses.


    ("<link>" & arrSR(1,i))  

    & "/i/" &


    & "/" &


    & "-jobs-in-" &


    & "</link>" & VbCrLf)  <<< looks like this one does not have an opening parenthesis
    LVL 18

    Accepted Solution

    Were you trying to LCase everything?

    Missing parenthesis's is your problem. This will write everything out.

    .Write("<link>" & LCase(arrSR(1,i)) & "/i/" & LCase(arrSR(4,i)) & "/" & LCase(seofriend(arrSR(5,i))) & "-jobs-in-" & LCase(seofriend(arrSR(9,i))) & "</link>" & VbCrLf)

    Open in new window

    If you need seofriend for arrSR 1 and 4

    .Write("<link>" & LCase(seofriend(arrSR(1,i))) & "/i/" & LCase(seofriend(arrSR(4,i))) & "/" & LCase(seofriend(arrSR(5,i))) & "-jobs-in-" & LCase(seofriend(arrSR(9,i))) & "</link>" & VbCrLf)

    Open in new window


    Author Closing Comment

    Thank you

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Suggested Solutions

    Debug Tools to analyse IIS process: This article focus on taking memory dumps from IIS to determine which code is taking more time and to analyse which calls hangs/causes more CPU usage. To take dumps,download the following. Install1: To st…
    Prologue It is often required to host multiple websites on a single instance of IIS, mostly in development environments instead of on production servers. I am sure it is not much a preferred solution on production servers but this is at least a pos…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now