Home > vbscript compilation > error type microsoft vbscript compilation 0x800a0400 expected statement

Error Type Microsoft Vbscript Compilation 0x800a0400 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 the line mentioned in the error

Microsoft Vbscript Compilation Error '800a0400' Expected Statement

message. Introduction to Code 800A0400 Error code 800A0400 is a generic message when you execute vbscript compilation error expected end of statement a VBScript. A wild guess, you have missed a command at the beginning of a line. The Symptoms You Get The script 1 1 microsoft vbscript compilation error expected statement 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 missing a statement. This is a difficult error to track down. However,

800a0400 Expected_statement 80

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 syntax error in your script. The Solution for Error: Expected statement The Windows Scripting Host gives us two

Expected Statement End If

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: " & WScript.Version & " " & _ WScript.BuildVersion & vbcr & "File name: " WScript.ScriptName WScript.Quit Guy Recommends: A Free Trial of the Network Performance Monitor (NPM) v11.5 SolarWinds' Orion performance monitor will help you discover what's happeni

help? Post your question and get tips & solutions from a community of 418,546 vbscript goto IT Pros & Developers. It's quick & easy. Option Explicit causing

Vbscript Tutorial

VBScript error P: n/a John Kotuby Hi all, I am simply trying to include the Option Explicit declaration at the top of an ASP page and am getting an error: Error Type: Microsoft VBScript compilation (0x800A0400) Expected statement /transferkey.asp, line 2 <% Option Explicit %> <% .... other code %> What am I doing wrong? According to a book on ASP 3.0 the syntax is correct. Is it the placement? Thanks... Mar 23 '06 #1 Post Reply Share this Question 6 Replies P: n/a Patrice This is <% .... other code %> What am I doing wrong? According to a book on ASP 3.0 the syntax is correct. Is it the placement? Thanks... Mar 23 '06 #2 P: n/a Patrice Just to be on the safe side, you may want to tell us what you are trying to do. This should be now syntactically correct but this is just an empty server side block. Perhaps you confused with <%@ Language=VBScript %> ? -- "Patrice" a écrit dans le message de news: ep**************@TK2MSFTNGP09.phx.gbl... This is

 

© Copyright 2019|winbytes.org.