By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
439,977 Members | 1,352 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 439,977 IT Pros & Developers. It's quick & easy.

Microsoft VBScript compilation (0x800A0408) Invalid character

P: n/a
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(&quot;" & LCase(user2) &
"&quot;;@LowerCase(@Name([CN];AssignedTo)))") end if %>

i.e. if the string user2 is "Mike" I expect the HTML to be
| @IsMember(&quot;mike&quot;;@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(&quot;" & LCase(user2) &
"&quot;;@LowerCase(@Name([CN];AssignedTo)))") end if
--------------------------------------------------------^

i.e. it is the semicolon on the first &quot; that it doesn't like. Why not?
It is part of a string in quotes?

I thought getting rid of the &quot; 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!
Jul 22 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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(&quot;" & LCase(user2)
& "&quot;;@LowerCase(@Name([CN];AssignedTo)))") end if %>

i.e. if the string user2 is "Mike" I expect the HTML to be
| @IsMember(&quot;mike&quot;;@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(&quot;" & LCase(user2) &
"&quot;;@LowerCase(@Name([CN];AssignedTo)))") end if
--------------------------------------------------------^

i.e. it is the semicolon on the first &quot; that it doesn't like. Why
not? It is part of a string in quotes?

I thought getting rid of the &quot; 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!

Jul 22 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.