Don't know what was going on there but I retyped the line and it's ok now ?!
"aklsdjfh" <as******@sadfasdfasdf.asd> wrote in message
news:42**********************@ptn-nntp-reader02.plus.net...
I'm no expert in asp and vbscript but not a total beginner. I've got some
VBScript in an asp page which is generating a forumla for use in Lotus
Notes replication.
The line that it is objecting to is
<% if user2 <> "" then response.write("| @IsMember("" & LCase(user2)
& "";@LowerCase(@Name([CN];AssignedTo)))") end if %>
i.e. if the string user2 is "Mike" I expect the HTML to be
| @IsMember("mike";@LowerCase(@Name([CN];AssignedTo)))
and the display in the browser to be
| @IsMember("mike";@LowerCase(@Name([CN];AssignedTo)))
The server responds
Error Type:
Microsoft VBScript compilation (0x800A0408)
Invalid character
/6500/notes_atform.asp, line 25, column 57
if user2 <> "" then response.write("| @IsMember("" & LCase(user2) &
"";@LowerCase(@Name([CN];AssignedTo)))") end if
--------------------------------------------------------^
i.e. it is the semicolon on the first " that it doesn't like. Why
not? It is part of a string in quotes?
I thought getting rid of the " by using ...IsMember(" & chr(34) &
LCase(... instead, but I now get the same error but at the ampersand
before the LCase().
I guess I'm missing somethign obvious. Please help!