Home > vbscript compilation > error 800a0401

Error 800a0401

Contents

800A0401 - Expected End of Statement Good news, here is another example of a WSH error message with a helpful Char: number. Count along the line until you get to the offending character. With Error 800A0401 start by looking for

Vb6 Error 800a0401

missing ampersands (&). Introduction to Code 800A0401 Error code, 800A0401 occurs when you execute a 800a0401 vbscript compilation error VBScript. This is a compilation error, therefore check your punctuation. A wild guess, you have left out an ampersand (&), or possibly a

Expected End Of Statement Vbscript Compilation Error

comma. The Symptoms You Get The script does not execute as you had hoped. Instead, Windows Scripting host generates a message box like this picture: Good news, I have three examples of code: 800A0401. The Cause of microsoft vbscript compilation error '800a0401' expected end of statement dim Code 800A0401 VBScript Error Your VBScript contains a punctuation error. Note: The clue from Source: Microsoft VBScript compilation error, this means a syntax error in your script. In this case the Char: number (33) is particularly valuable in troubleshooting. The Solution to Error: Expected end of statement Check the syntax of your script, in particular double-check punctuation marks (&, comma, speech marks or full stop.). In this instance, Windows Scripting Host has detected a mix-up between vbscript expected end a comma and a full stop. As ever, a line number is helpful when troubleshooting, moreover, any Char : number other than 1, will pin-point the problem. ‡ Example 1 of Script for Code 800A0401 Note: The error is at Line 3, Character 33 - wbemServices, Instances It should be wbemServices.Instances (Full stop, and not a comma) ' VBScript Error 800A0401strComputer = "Alan" set wbemservices = GetObject("Winmgmts:\\" & strComputer) set wbemObjectSet = wbemServices, InstancesOf ("win32_LogicalMemoryConfiguration") For each wbemobject in wbemobjectset WScript.echo "Tot Physical Memory " & wbemobject.totalPhysicalMemory Next Guy Recommends: A Free Trial of the Network Performance Monitor (NPM) v11.5 SolarWinds' Orion performance monitor will help you discover what's happening on your network. This utility will also guide you through troubleshooting; the dashboard will indicate whether the root cause is a broken link, faulty equipment or resource overload. What I like best is the way NPM suggests solutions to network problems. Its also has the ability to monitor the health of individual VMware virtual machines. If you are interested in troubleshooting, and creating network maps, then I recommend that you try NPM now. Download a free trial of Solarwinds' Network Performance Monitor Example 2 of Script for Error 800A0401 Problem Wscript.Echo objNetwork.UserName " at " & objNetwork.ComputerName An & (ampersand) is missing it should be: Correction Wscript.Echo objNetwork.UserName & " at " &

here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about

Expected End Of Statement Error In Qtp

Stack Overflow the company Business Learn more about hiring developers or posting ads expected statement error in vbscript with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow

Vbscript Compilation Error Expected Statement

is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Error declaring a variable, What Im Doing wrong up vote 1 down vote http://www.computerperformance.co.uk/Logon/code/code_800A0401.htm favorite I'm declaring a string variable this way in classic ASP: Dim i As String And getting this error: Microsoft VBScript compilation error '800a0401' Expected end of statement /retencion/Estadisticas/Detail.asp, line 10, column 6 Dim i As String -----^ Why is that? asp-classic share|improve this question edited Jul 31 '09 at 14:14 Tomalak 207k40344462 asked Jul 31 '09 at 13:58 user136224 73413 add a comment| 5 Answers 5 active oldest votes http://stackoverflow.com/questions/1212692/error-declaring-a-variable-what-im-doing-wrong up vote 6 down vote accepted Classic ASP is written in VBScript and isn't Visual Basic itself, so you can't declare things as strings. Loosely typed I think is the phrase to describe it. Basically, you have to leave out the "as" and anything after it. Try: <% Dim i 'you can now use the variable as you want. i = "whatever" %> share|improve this answer answered Jul 31 '09 at 14:02 Amadiere 7,23443145 Tnks its true, I cant use "as" –user136224 Jul 31 '09 at 14:09 1 Just to clarify Classic ASP uses "a" script language which by and large is VBScript. However it may also be Javascript or any other script language designed to work with the windows script host. –AnthonyWJones Aug 1 '09 at 15:05 add a comment| up vote 3 down vote It's actually VBScript. You have to do this: dim i i = "some string" share|improve this answer answered Jul 31 '09 at 14:01 Austin Salonen 33.4k981112 add a comment| up vote 2 down vote I believe in classic ASP you can't give an explicit type to your variables. They all have to be variants and they have to be declared with no As clause, e.g. "dim i".

Code 800A0401 If this is your first visit, be sure to check out the http://www.vbforums.com/showthread.php?549547-Error-Expected-end-of-statement-Code-800A0401 FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. Results 1 to 7 of 7 Thread: Error: Expected end of statement, Code vbscript compilation 800A0401 Tweet Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode Dec 7th, 2008,02:13 PM #1 LVSA View Profile View Forum Posts Thread Starter New Member Join Date Dec 2008 Posts 1 Error: Expected end of statement, Code 800A0401 I am vbscript compilation error getting an Expected end of statement, Code 800A0401 on Line: 1 and Char: 11. However this line is a comment. I know I must have a syntax error somewhere but, I cannot find it. Any suggestions? ' -------------------------------------------------- ' VBScript Source File — Created with XLnow OnScript ' VBS Logon Script (xxx) ' AUTHOR: xxx ' COMPANY: xxx ' DATE: 12/06/2008 ' COMMENT: Goup Logon Script ' -------------------------------------------------- ON ERROR RESUME NEXT Dim WSHShell, WSHNetwork, objDomain, DomainString, UserString, UserObj, Path, objNetwork, objNetworkl Set WSHShell = CreateObject("WScript.Shell") Set WSHNetwork = CreateObject("WScript.Network") 'Automatically find the domain name Set objDomain = getObject("LDAP://rootDse") DomainString = objDomain.Get("dnsHostName") WinDir = WshShell.ExpandEnvironmentStrings("%WinDir%") 'Grab the user name UserString = WSHNetwork.UserName 'Bind to the user object to get user name and check for group memberships later Set UserObj = GetObject("WinNT://" & DomainString & "/" & UserString) 'Grab the computer name for use in add-on code later strComputer = WSHNetwork.ComputerName 'Disconnect AL

 

Related content

800a03ea vbscript compilation error

a ea Vbscript Compilation Error table id toc tbody tr td div id toctitle Contents div ul li a href Microsoft Vbscript Compilation Error a a li li a href Vbscript Compilation Error Expected End Of Statement a li li a href Vbscript Compilation Error Expected Identifier a li ul td tr tbody table p here for a quick overview of the site relatedl Help Center Detailed answers to any questions vbscript compilation error a ea class you might have Meta Discuss the workings and policies of this p h id Microsoft Vbscript Compilation Error a p site About Us

800a03ee vbscript compilation error

a ee Vbscript Compilation Error table id toc tbody tr td div id toctitle Contents div ul li a href Vbscript Compilation Error Expected Statement a li li a href Vbscript Compilation Error a ea a li li a href Vbscript Compilation Error Name Redefined a li li a href Vbscript Compilation Error Cannot Use Parentheses When Calling A Sub a li ul td tr tbody table p jokes This Error A EE can be tricky While it is indeed relatedl a syntax error it may not be where microsoft vbscript compilation error a you expect Therefore check the Char

800a0409 vbscript compilation error

a Vbscript Compilation Error table id toc tbody tr td div id toctitle Contents div ul li a href Vbscript Compilation Error Expected Statement a li li a href Microsoft Vbscript Compilation Error a a li li a href Vbscript Compilation Error a ea a li ul td tr tbody table p A - Unterminated string constant An easy error to cure especially if you count the Char number Naturally start at relatedl the beginning of the line referenced in the error microsoft vbscript compilation error a message Solving A really is that easy Introduction to Error Code A This

const strfolder syntax error

Const Strfolder Syntax Error table id toc tbody tr td div id toctitle Contents div ul li a href Microsoft Vbscript Compilation Error a a li li a href Vbscript Compilation Error Syntax Error a li li a href Microsoft Vbscript Compilation Error a a li li a href Use Strict a li ul td tr tbody table p relatedl p h id Microsoft Vbscript Compilation Error a p HomeLibraryLearnDownloadsRepositoryCommunityForumsBlog Ask a question Quick microsoft vbscript compilation error a access Forums home Browse forums users FAQ Search p h id Vbscript Compilation Error Syntax Error p related threads Remove From

error 1032 invalid character

Error Invalid Character table id toc tbody tr td div id toctitle Contents div ul li a href Microsoft Vbscript Compilation Error a ea a li li a href Microsoft Vbscript Compilation Error Fix a li ul td tr tbody table p here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site relatedl About Us Learn more about Stack Overflow the company Business Learn microsoft vbscript compilation error invalid character more about hiring developers or posting ads with us Stack Overflow Questions Jobs

error 800a0400 expected statement

Error a Expected Statement table id toc tbody tr td div id toctitle Contents div ul li a href Vbscript Compilation Error a a li li a href Microsoft Vbscript Compilation Error Expected Statement a li li a href Vbscript Compilation Error Expected End Of Statement a li ul td tr tbody table p - Expected Statement Perhaps instead of 'Expected Statement' 'missing character' would be a better error message I have noticed with error A how often the problem is at the relatedl beginning or the end of the line mentioned in the vbs error a error message Introduction

error 800a0400

Error a table id toc tbody tr td div id toctitle Contents div ul li a href Microsoft Vbscript Compilation Error a Expected Statement a li li a href Microsoft Vbscript Compilation Error Expected Statement a li li a href a Expected statement a li li a href Expected Statement End If a li ul td tr tbody table p here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company relatedl Business Learn more

error code 800a0400

Error Code a table id toc tbody tr td div id toctitle Contents div ul li a href a Expected statement a li li a href Expected Statement End If a li ul td tr tbody table p - Expected Statement Perhaps instead of 'Expected Statement' 'missing character' would be a better error message I have relatedl noticed with error A how often the problem is microsoft vbscript compilation error a expected statement at the beginning or the end of the line mentioned in the vbs error a error message Introduction to Code A Error code A is a generic

error type microsoft vbscript compilation 0x800a0400 expected statement

Error Type Microsoft Vbscript Compilation x a Expected Statement table id toc tbody tr td div id toctitle Contents div ul li a href Microsoft Vbscript Compilation Error a Expected Statement a li li a href a Expected statement a li li a href Expected Statement End If a li li a href Vbscript Tutorial a li ul td tr tbody table p - Expected Statement Perhaps instead of 'Expected Statement' 'missing character' would be a better error message I have noticed with error A how often the problem is at the relatedl beginning or the end of the line

error type microsoft vbscript compilation 0x800a0408 invalid character

Error Type Microsoft Vbscript Compilation x a Invalid Character table id toc tbody tr td div id toctitle Contents div ul li a href Microsoft Vbscript Compilation Error a Invalid Character a li li a href Microsoft Vbscript Compilation Error a a li li a href Microsoft Vbscript Compilation Error Fix a li li a href Microsoft Vbscript Compilation Error a a li ul td tr tbody table p Ask a Question Need help Post your question and get tips solutions from a community of relatedl IT Pros Developers It's quick easy p h id Microsoft Vbscript Compilation Error a

error type microsoft vbscript compilation 0x800a0401 expected end of statement

Error Type Microsoft Vbscript Compilation x a Expected End Of Statement table id toc tbody tr td div id toctitle Contents div ul li a href Microsoft Vbscript Compilation Error a Expected End Of Statement Dim a li li a href a Expected end of statement a li ul td tr tbody table p New Today's Posts FAQ Rules Guidelines Search Advanced Search relatedl Forum Server side development ASP Error Type Microsoft expected end of statement vbscript compilation error VBScript compilation x A Expected end of statement If this is your p h id Microsoft Vbscript Compilation Error a Expected

expected end of statement vbscript compilation error

Expected End Of Statement Vbscript Compilation Error table id toc tbody tr td div id toctitle Contents div ul li a href Microsoft Vbscript Compilation Error a f Expected end a li li a href Microsoft Vbscript Compilation Error a a li li a href Vbscript Compilation Error Name Redefined a li li a href Vbscript Compilation Error Cannot Use Parentheses When Calling A Sub a li ul td tr tbody table p here for a quick overview of the site Help Center Detailed answers to relatedl any questions you might have Meta Discuss the microsoft vbscript compilation error a

expected identifier error in vbscript

Expected Identifier Error In Vbscript table id toc tbody tr td div id toctitle Contents div ul li a href Vbscript Reserved Words a li li a href Expected Identifier Error In Qtp a li li a href Expected Identifier Error In Uft a li ul td tr tbody table p that is not a VBScript reserved microsoft vbscript compilation error a expected end of statement word Enclose the reserved word in img code p Need Help about VBScript Download VbsEdit This package includes VbsEdit -bit VbsEdit -bit HtaEdit -bit and HtaEdit -bit The evaluation version never expires Home Copyright

how to fix microsoft vbscript compilation error

How To Fix Microsoft Vbscript Compilation Error table id toc tbody tr td div id toctitle Contents div ul li a href Microsoft Vbscript Compilation Error a a li li a href Microsoft Vbscript Compilation Error a a li li a href Microsoft Vbscript Compilation Error a ee Expected a li ul td tr tbody table p here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of relatedl this site About Us Learn more about Stack Overflow the company microsoft vbscript compilation error a Business

invalid character error in vbscript

Invalid Character Error In Vbscript table id toc tbody tr td div id toctitle Contents div ul li a href Microsoft Vbscript Compilation Error a ea a li li a href How To Run Vbscript a li li a href Notepad Tricks a li ul td tr tbody table p here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss relatedl the workings and policies of this site About Us Learn microsoft vbscript compilation error a more about Stack Overflow the company Business Learn more about hiring developers or vbscript

invalid character vbscript error

Invalid Character Vbscript Error table id toc tbody tr td div id toctitle Contents div ul li a href Microsoft Vbscript Compilation Error Invalid Character a li li a href Microsoft Vbscript Compilation Error Expected Statement a li li a href Microsoft Vbscript Compilation Error a ea a li li a href Microsoft Vbscript Compilation Error a a li ul td tr tbody table p here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies relatedl of this site About Us Learn more about Stack Overflow

invalid character error in qtp

Invalid Character Error In Qtp table id toc tbody tr td div id toctitle Contents div ul li a href Microsoft Vbscript Compilation Error a a li li a href Microsoft Vbscript Compilation Error a ea a li li a href Notepad Tricks a li ul td tr tbody table p - Invalid Character Introduction to Code A This error code A occurs when you execute a VBScript A relatedl wild guess a problem with an apostrophe possibly in microsoft vbscript compilation error invalid character a 'REM statement The Symptoms You Get The script does not execute p h id

invalid character vbscript compilation error

Invalid Character Vbscript Compilation Error table id toc tbody tr td div id toctitle Contents div ul li a href Microsoft Vbscript Compilation Error a a li li a href Microsoft Vbscript Compilation Error Expected Statement a li li a href Microsoft Vbscript Compilation Error a a li li a href How To Run Vbscript a li ul td tr tbody table p here for a quick overview of the site Help Center Detailed answers to any questions you might relatedl have Meta Discuss the workings and policies of this p h id Microsoft Vbscript Compilation Error a p site

microsoft vbscript compilation error code 800a0400

Microsoft Vbscript Compilation Error Code a table id toc tbody tr td div id toctitle Contents div ul li a href Expected Statement End If a li ul td tr tbody table p Tips Tricks Top Articles Beginner Articles Technical Blogs Posting Update Guidelines Article Help Forum Article Competition Submit an article or tip Post your Blog quick answersQ A Ask relatedl a Question View Unanswered Questions View All Questions Linux questions vbscript compilation error expected end of statement C questions ASP NET questions SQL questions fabric questions discussionsforums All Message Boards Application Lifecycle microsoft vbscript compilation error expected statement

microsoft vbscript compilation error expected statement

Microsoft Vbscript Compilation Error Expected Statement table id toc tbody tr td div id toctitle Contents div ul li a href Microsoft Vbscript Compilation Error Expected Statement a li li a href Expected Statement End If a li li a href Vbscript Expected a li li a href Vbscript Hello World a li ul td tr tbody table p - Expected Statement Perhaps instead of 'Expected Statement' 'missing character' would be a better relatedl error message I have noticed with error A how p h id Microsoft Vbscript Compilation Error Expected Statement p often the problem is at the beginning

microsoft vbscript compilation error 800a0400 expected statement

Microsoft Vbscript Compilation Error a Expected Statement table id toc tbody tr td div id toctitle Contents div ul li a href Expected Statement End If a li li a href Vbscript Hello World a li li a href How To Run Vbscript In Cmd a li ul td tr tbody table p - Expected Statement Perhaps instead of 'Expected Statement' 'missing character' would be a better error message I have noticed with error A how often relatedl the problem is at the beginning or the end of vbscript compilation error expected end of statement the line mentioned in the

microsoft vbscript compilation error invalid character

Microsoft Vbscript Compilation Error Invalid Character table id toc tbody tr td div id toctitle Contents div ul li a href Vbscript Compilation Error Syntax Error a li li a href Microsoft Vbscript Compilation Error a ea a li li a href How To Run Vbscript a li ul td tr tbody table p here for a quick overview relatedl of the site Help Center Detailed answers microsoft vbscript compilation error a to any questions you might have Meta Discuss the workings p h id Vbscript Compilation Error Syntax Error p and policies of this site About Us Learn more

microsoft vbscript compilation error 800a0400 option explicit

Microsoft Vbscript Compilation Error a Option Explicit table id toc tbody tr td div id toctitle Contents div ul li a href Expected Statement End If a li li a href Vbscript Goto a li ul td tr tbody table p of my ASP page Microsoft VBScript compilation error ' a ' Expected relatedl statement mailform asp line Option Explicit Would microsoft vbscript compilation error a expected statement anyone know why that is westmich - - UTC vbscript compilation error expected end of statement Are there any variables you are not initializing SeFu - - UTC hmm not sure i

microsoft vbscript compilation error 800a0400

Microsoft Vbscript Compilation Error a table id toc tbody tr td div id toctitle Contents div ul li a href a Expected statement a li li a href Expected Statement End If a li li a href Vbscript Goto a li ul td tr tbody table p p p p p p p MICROSOFT VBSCRIPT COMPILATION ERROR ' A ' IDMWS DOCVIEW ASP LINE -- INCLUDE FILE IN Technote troubleshooting Problem Abstract Microsoft VBScript compilation error ' a 'Expected statement idmws Do Resolving the problem Microsoft VBScript compilation error ' a ' Expected statement idmws DocView asp line -- INCLUDE

microsoft vbscript compilation error 800a0400 option

Microsoft Vbscript Compilation Error a Option table id toc tbody tr td div id toctitle Contents div ul li a href Vbscript Compilation Error Expected End Of Statement a li li a href Expected Statement End If a li ul td tr tbody table p New Today's Posts FAQ Rules Guidelines Search Advanced Search Forum Server side development ASP Option explicit error If this is your first visit be relatedl sure to check out the FAQ by clicking the link above microsoft vbscript compilation error a expected statement You may have to register before you can post click the register

microsoft vbscript compilation error 800a0408 invalid character

Microsoft Vbscript Compilation Error a Invalid Character table id toc tbody tr td div id toctitle Contents div ul li a href Microsoft Vbscript Compilation Error a a li li a href Microsoft Vbscript Compilation Error Expected Statement a li li a href Microsoft Vbscript Compilation Error a a li li a href How To Run Vbscript a li ul td tr tbody table p here for a quick overview of the site Help Center Detailed answers to any questions you might have relatedl Meta Discuss the workings and policies of this site p h id Microsoft Vbscript Compilation Error

microsoft vbscript compilation error

Microsoft Vbscript Compilation Error table id toc tbody tr td div id toctitle Contents div ul li a href Microsoft Vbscript Compilation Error a a li li a href Vbscript Compilation Error Syntax Error a li li a href Microsoft Vbscript Compilation Error Fix a li li a href Microsoft Vbscript Compilation Error a a li ul td tr tbody table p HomeLibraryLearnDownloadsRepositoryCommunityForumsBlog Ask a question Quick access Forums home Browse forums users FAQ Search related threads Remove From My Forums Answered by Getting Microsoft VBScript compilation relatedl error Expected statement and Terminated with exit code p h id Microsoft

microsoft vbscript compilation error '800a0401

Microsoft Vbscript Compilation Error ' a table id toc tbody tr td div id toctitle Contents div ul li a href Microsoft Vbscript Compilation Error a Expected End Of Statement Dim a li li a href Expected Statement Error In Vbscript a li li a href Expected End Of Statement Uft a li li a href Microsoft Vbscript Compilation Error Expected a li ul td tr tbody table p A - Expected End of Statement Good news here is another example of a WSH error message with a helpful Char number Count along relatedl the line until you get to

microsoft vbscript compilation error invalid character line 1 column 1

Microsoft Vbscript Compilation Error Invalid Character Line Column table id toc tbody tr td div id toctitle Contents div ul li a href Vbscript Compilation Error Syntax Error a li li a href Microsoft Vbscript Compilation Error Expected Statement a li li a href Microsoft Vbscript Compilation Error a ea a li ul td tr tbody table p here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the relatedl workings and policies of this site About Us Learn more microsoft vbscript compilation error a about Stack Overflow the company

microsoft vbscript compilation error 800a0408

Microsoft Vbscript Compilation Error a table id toc tbody tr td div id toctitle Contents div ul li a href Vbscript Compilation Error Syntax Error a li li a href Microsoft Vbscript Compilation Error Expected Statement a li li a href Microsoft Vbscript Compilation Error a ea a li ul td tr tbody table p here for a quick overview of the site Help Center Detailed answers to any questions you relatedl might have Meta Discuss the workings and policies of microsoft vbscript compilation error a this site About Us Learn more about Stack Overflow the company Business Learn p

microsoft vbscript compilation error 800a0400 expected statement end if

Microsoft Vbscript Compilation Error a Expected Statement End If table id toc tbody tr td div id toctitle Contents div ul li a href Vbscript Compilation Error Expected End Of Statement a li li a href a Expected statement a li li a href Vbscript Hello World a li li a href Vbscript Tutorial a li ul td tr tbody table p here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies relatedl of this site About Us Learn more about Stack Overflow p h id

ms vbscript compilation error 800a0400

Ms Vbscript Compilation Error a table id toc tbody tr td div id toctitle Contents div ul li a href Vbscript Compilation Error Expected End Of Statement a li li a href Expected Statement End If a li li a href Vbscript Expected a li li a href Vbscript Hello World a li ul td tr tbody table p Ask a Question microsoft vbscript compilation error expected statement Need help Post your question and get tips solutions from a expected statement a community of IT Pros Developers It's quick easy Microsoft VBScript compilation error ' a ' p h id

ms vbscript compilation error

Ms Vbscript Compilation Error table id toc tbody tr td div id toctitle Contents div ul li a href Microsoft Vbscript Compilation Error Expected Statement a li li a href Vbscript Compilation Error Syntax Error a li li a href Microsoft Vbscript Compilation Error Fix a li ul td tr tbody table p here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies relatedl of this site About Us Learn more about Stack Overflow microsoft vbscript compilation error a the company Business Learn more about hiring