Microsoft VBScript compilation (0x800A0408) Invalid character

Discussion in 'ASP General' started by aklsdjfh, May 11, 2005.

  1. aklsdjfh

    aklsdjfh Guest

    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!
    aklsdjfh, May 11, 2005
    #1
    1. Advertising

  2. aklsdjfh

    aklsdjfh Guest

    Don't know what was going on there but I retyped the line and it's ok now ?!

    "aklsdjfh" <> wrote in message
    news:4281ea32$0$7219$...
    > 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!
    >
    aklsdjfh, May 11, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Matt
    Replies:
    3
    Views:
    234
    Rob Greene
    Jan 11, 2004
  2. Adam Short
    Replies:
    3
    Views:
    589
    Ray Costanzo [MVP]
    Apr 21, 2005
  3. Adam Short
    Replies:
    6
    Views:
    208
    Adam Short
    Apr 26, 2005
  4. S N
    Replies:
    0
    Views:
    318
  5. rebecca29
    Replies:
    0
    Views:
    3,049
    rebecca29
    May 5, 2012
Loading...

Share This Page