Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Microsoft VBScript compilation (0x800A0408) Invalid character

Reply
Thread Tools

Microsoft VBScript compilation (0x800A0408) Invalid character

 
 
aklsdjfh
Guest
Posts: n/a
 
      05-11-2005
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 (0x800A040
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!


 
Reply With Quote
 
 
 
 
aklsdjfh
Guest
Posts: n/a
 
      05-11-2005
Don't know what was going on there but I retyped the line and it's ok now ?!

"aklsdjfh" <(E-Mail Removed)> wrote in message
news:4281ea32$0$7219$(E-Mail Removed)...
> 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 (0x800A040
> 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!
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Microsoft VBScript compilation error '800a03f6' Expected 'End' rebecca29 ASP General 0 05-05-2012 12:59 AM
Microsoft VBScript compilation error '800a0400' option explicit S N ASP General 0 04-06-2008 09:25 PM
Microsoft VBScript compilation error '800a03f6' Adam Short ASP General 6 04-26-2005 09:52 AM
Microsoft VBScript compilation error '800a03f6' Expected 'End' ?, Line 0 Adam Short ASP General 3 04-21-2005 12:56 PM
Microsoft VBScript compilation (0x800A0400): Expected statement Matt ASP General 3 01-11-2004 06:02 PM



Advertisments