ASP Expected end of statement

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?

Thanks
garethtnashAsked:
Who is Participating?
 
Matthew KellyCommented:
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

0
 
selvolCommented:
You have an extra ")"


Selvol
0
 
Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
Check your parentheses.

.Write

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

& "/i/" &

 (arrSR(4,i))  

& "/" & 

LCase(seofriend(arrSR(5,i)))

& "-jobs-in-" & 

LCase(seofriend(arrSR(9,i)))

& "</link>" & VbCrLf)  <<< looks like this one does not have an opening parenthesis
0
 
garethtnashAuthor Commented:
Thank you
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.