• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 872
  • Last Modified:

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
0
garethtnash
Asked:
garethtnash
3 Solutions
 
selvolCommented:
You have an extra ")"


Selvol
0
 
Scott Fell, EE MVEDeveloperCommented:
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
 
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
 
garethtnashAuthor Commented:
Thank you
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now