Compilation error: expected "end"

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Stan S. (StanS_at_discussions.microsoft.com)
Date: 08/23/04


Date: Mon, 23 Aug 2004 07:47:04 -0700

I have a VBscript program that is 387 lines long and will not compile but
gives the cryptic "Expected "End" on line 387 at the last character.

I checked carefully for any incomplete if ...then...end if's but found none.
 All my for ...loop's are closed as well.

Have I missed something else...maybe the program is too long? I know it's
got to be something simple.

Thanks,

Stan S.



Relevant Pages

  • Re: Compilation error: expected "end"
    ... Stan S. wrote: ... > I have a VBscript program that is 387 lines long and will not compile ... > I checked carefully for any incomplete if ...then...end if's but ... Please reply to the newsgroup. ...
    (microsoft.public.scripting.vbscript)
  • Re: Compilation error: expected "end"
    ... is the WScript is not smart enough to always get it ... Stan S. wrote in message ... > I have a VBscript program that is 387 lines long and will not compile but ... > I checked carefully for any incomplete if ...then...end if's but found ...
    (microsoft.public.scripting.vbscript)