Microsoft Vbscript Compilation Error 800a0400 Expected Statement
Contents |
- Expected Statement Perhaps instead of 'Expected Statement', 'missing character' would be a better error message. I have noticed with error 800A0400 how often the problem is at the beginning or the end of vbscript compilation error expected end of statement the line mentioned in the error message. Introduction to Code 800A0400 Error code 1 1 microsoft vbscript compilation error expected statement 800A0400 is a generic message when you execute a VBScript. A wild guess, you have missed a command at the beginning 800a0400 expected_statement 80 of a line. The Symptoms You Get The script does not execute as you had hoped. Instead you get a message box like this picture: The Cause of Error 800A0400 Your VBScript contain is
Expected Statement End If
missing a statement. This is a difficult error to track down. However, the good news is that I have three examples. Most likely you have placed a statement, which is not appropriate for the logic of your script. For example, extra brackets, or missing command. Note: the clue 'Source: Microsoft VBScript compilation error'. My point is that 'compilation error' and not a 'runtime error', means this is a vbscript expected ')' syntax error in your script. The Solution for Error: Expected statement The Windows Scripting Host gives us two useful clues, firstly, look on Line: 10, do count any remark or empty lines. Secondly, the Char: number 1, is useful in tracing the error. In this case there is something wrong with the Select statement. The line number, as is so often the case, is crucial to solving this error. The problem is that the whole line is gibberish to the VBScript engine. So take another look at each word, punctuation and see if you can spot a simple error. ‡ Example 1 of Error code: 800A0400Missing underscore at the end of the line 7: ' WSHname.vbs' Sample VBScript to check WSH Version' Author Guy Thomas http://computerperformance.co.uk/' Version 2.3 - September 2010 ' -------------------------------------------------------On Error Resume Next WScript.Echo "WSH Version: " & WScript.Version & " " & WScript.BuildVersion & vbcr & "File name: " WScript.ScriptName WScript.Quit SolutionMissing underscore at the end of the line:WScript.Echo "WSH Version: " & WScript.Version & " " & _ ' WSHname.vbs' Sample VBScript to check WSH Version' Author Guy Thomas http://computerperformance.co.uk/' Version 2.3 - September 2010 ' -------------------------------------------------------On Error Resume Next WScript.Echo "WSH Version: " & W
+
How To Run Vbscript In Cmd
Ask a Question Need help? Post your question and get tips & solutions http://www.computerperformance.co.uk/Logon/code/code_800A0400.htm from a community of 418,590 IT Pros & Developers. It's quick & easy. Microsoft VBScript compilation error '800a0400' Expected statement P: 1 buri22 I have this https://bytes.com/topic/asp-classic/answers/954267-microsoft-vbscript-compilation-error-800a0400-expected-statement error : Microsoft VBScript compilation error '800a0400' Expected statement /amministrazione/add2_sponsor.asp, line 11 <% ^ The code of file "add2_sponsor.asp : Expand|Select|Wrap|Line Numbers <%@LANGUAGE="VBSCRIPT"CODEPAGE="1252"%> <%Session.LCID=1040%>
of my ASP page... Microsoft VBScript compilation error '800a0400' Expected statement /mailform.asp, line 1 Option Explicit ^ Would https://www.sitepoint.com/community/t/asp-error-using-option-explicit-huh/1036 anyone know why that is? westmich 2001-04-11 05:43:05 UTC #2 Are there any variables you are not initializing? SeFu 2001-04-11 08:16:45 UTC #3 hmm...not sure. i http://www.ibm.com/support/docview.wss?uid=swg21274915 suppose there could be heh is that the error I would get if that were the case?seems like an off the wall sort of error response Im vbscript compilation sure that must be the problem though shane 2001-04-11 20:23:04 UTC #4 If you had an undeclared variable I'd normally expect an 'Undefined variable' error. Have you got any script before the Option Explicit statement? Remember, that if you ssi any files in the page that contain script then these include statements also vbscript compilation error have to come after the Option Explicit statement. One other thing, if you're using the script language directive this has to be contained within script delimiters even if more script follows straight after. eg:<%@ Language = "VBScript" %><% Option Explicit'Rest of script .... SeFu 2001-04-12 03:00:48 UTC #5 yea its weird... i make sure to put Option Explicit FIRST THING on my page (cause Im not declaring the scripting language). Another thing is... when I try and declare the scripting language... I get a 500 error i dunno... weird stuff... and my books dont cover these things goober 2001-04-14 19:08:00 UTC #6 You should declare the scripting language as VBScript first, then use Option Explicit. Also, make SURE those are the first two lines in any ASP page. Hope this helps. Mittineague 2014-10-03 08:02:57 UTC #7 Home Categories FAQ/Guidelines Terms of Service Privacy Policy Powered by Discourse, best viewed with JavaScript enabled Shop Versioning Reference Articles Premium
MICROSOFT VBSCRIPT COMPILATION ERROR '800A0400' /IDMWS/DOCVIEW.ASP, LINE 179 To "fix" the problem, simply put an apostrophe in front of the line that reads: The modified section of code will look like: ' Start of Panagon eForms integration: ' Panagon eForms - 4.2.1.1046 ' ' End Panagon eForms integration Then, simply save the modified docview.asp page and make sure notepad doesn't append a .txt extension on the file. Historical Number 10003840 Product Alias/Synonym IDM WEB/OPEN CLIENT Document information More support for: FileNet IDM Desktop/WEB Services/Open Client IDM Desktop Software version: 3.X Operating system(s): Platform Independent Reference #: 1274915 Modified date: 19 November 2005 Site availability Site assistance Contact and feedback Need support? Submit feedback to IBM Support 1-800-IBM-7378 (USA) Directory of worldwide contacts Contact Privacy Terms of use Accessibility