Microsoft Vbscript Compilation Error 800a0411 Name Redefined
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 Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up VBScript Error Name redefined up vote 2 down vote favorite I have an alert box, and if I'm currently on the test Database, I want the alert box to have different text when compared to live database. So I declared a variable called isTestDb and set it to True, but I keep getting this annoying error: Microsoft VBScript compilation error '800a0411' Name redefined myfiles/conn_open.asp, line 12 Dim isTestDb ----^ Here is my simple code which sits inside an include at a much higher level than where I'm doing my conditional check, I'm assuming that isn't a problem. Dim isTestDb isTestDb = True -- Much Later in another file somehwere If isTestDb Then Response.Write("
It is set to True
") Response.End Else Response.Write("It is set to False
") Response.End End If I have checked all my working directory and I'm certain that variable is not set somewhere else by the same name, I even tried different names for the variable and got the exact same error. Any help would be greatly appreciated. vbscript share|improve this question edited Nov 13 '13 at 11:48 asked Nov 13 '13 at 11:22 Ciwan 2,790145098 What does 'reversed word' mean in this context? I have updated to show where variable is set. Thanks David. –Ciwan Nov 13 '13 at 11:49 Can't see a problem with thevisit, be sure to check out the 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 5 of 5 Thread: Name redifined error Tweet Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode Aug 16th, 2000,09:46 AM #1 dcarlson View Profile View Forum Posts Thread Starter Hyperactive Member Join Date Apr 2000 Location Sudbury, Ontario, Canada Posts 274 I'm getting this error: Microsoft VBScript compilation error '800a0411' Name redefined /WebOpenClose_Local/ocscripts/list_office.asp, line 3 http://stackoverflow.com/questions/19952455/vbscript-error-name-redefined dim myDSN, mySQL ----^ What does this mean and how do I get rid of it? Thanks, Reply With Quote Aug 16th, 2000,10:24 AM #2 Guest It means that you've put Code: Dim myDSN 'Then a little further down the page: Dim myDSN ' again!! if you can find it Dimmed twice, then there's your problem...if not check that you haven't redimmed in another file that you're including with SSI. When you do this both files become http://www.vbforums.com/showthread.php?26694-Name-redifined-error one (to the asp parser) and even if each Dim statement is in a different file they will effectively both be in the same one. Reply With Quote Aug 16th, 2000,02:55 PM #3 dcarlson View Profile View Forum Posts Thread Starter Hyperactive Member Join Date Apr 2000 Location Sudbury, Ontario, Canada Posts 274 I eventually found the problem, what a piece of crap. For every include file you have to create unique variables. Thanks for the reply though. Reply With Quote Aug 17th, 2000,05:48 PM #4 Guest You don't need variables unique to each include file - just make sure you only declare them once. Reply With Quote Aug 18th, 2000,08:17 AM #5 dcarlson View Profile View Forum Posts Thread Starter Hyperactive Member Join Date Apr 2000 Location Sudbury, Ontario, Canada Posts 274 What happened was I had a page with myDSN and mySQL as a variables and then included another ASP file which also had myDSN and mySQL as variables. On both pages I had Option Explicit declared. Thus giving me the error. I think that's what happened, I can't really remember. Reply With Quote Quick Navigation ASP, VB Script Top Site Areas Settings Private Messages Subscriptions Who's Online Search Forums Forums Home Forums Visual Basic Visual Basic .NET VB.net CodeBank Visual Basic 6 and Earlier CodeBank - Visual Basic 6 and earlier Modern Windows Experience (M
Unanswered Topics Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP Basics Error Type: Microsoft VBScript http://p2p.wrox.com/classic-asp-basics/80234-error-type-microsoft-vbscript-compilation-0x800a0411-name-redefined.html compilation (0x800A0411) Name redefined User Name Remember Me? Password Reminder Password Register https://forums.digitalpoint.com/threads/what-is-wrong-name-redefined.199077/ Register | FAQ | Members List | Calendar | Today's Posts | Search Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0 Search Forums Show Threads Show Posts Advanced Search Find All Thanked Posts Go to Page... microsoft vbscript Welcome to the p2p.wrox.com Forums. You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond microsoft vbscript compilation to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free . Page 1 of 3 1 23 > Thread Tools Display Modes #1 (permalink) July 23rd, 2010, 08:56 AM peony88 Registered User Join Date: Jul 2010 Posts: 17 Thanks: 0 Thanked 0 Times in 0 Posts Error Type: Microsoft VBScript compilation (0x800A0411) Name redefined So, I get this error on this page; any suggestions? Error Type: Microsoft VBScript compilation (0x800A0411) Name redefined /asp/connDB_flextime.inc, line 2, column 4 Browser Type: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; InfoPath.2; .NET CLR 1.1.4322; MS-RTC EA 2; MS-RTC LM 8) Page: POST 122 bytes to /asp/dtsShowForm.asp POST Data: ps=1&employeeinfo=1484%3BADAMS%2CJOEL%3Bjoela%3B58 2%3BBOS%3B6%3B5&slctName=1484%3BADAMS%2CJOEL%3Bjoe la%3B582%3BBOS%3B6%3B5 #2 (permalink) July 23rd, 2010, 07:06 PM Old Pedant Friend of Wrox Join Date: Jun 2008 Location: Snohomish, WA, USA Posts: 1,652 Thanks: 3 Thanked 141 Times in 140 Posts Well, first of all, fix your browser. Click on TOOLS menu. Click on INTE
You can target relevant areas of the site and show ads based on geographical location of the user if you wish. Starts at just $1 per CPM or $0.10 per CPC. what is wrong "Name redefined" Discussion in 'C#' started by alchemist, Dec 16, 2006. 0 alchemist Peon Messages: 6 Likes Received: 0 Best Answers: 0 Trophy Points: 0 #1 so I made a script acording template and when I run it I get the error message here is script: <% DIM strTitle, strFirstname, strLastName, strPatronymic, strPosition, strNameoftheinstitution, strCountry, strEmail, strPhone, strFax, strPresntationtitle, strSession, Mail strTitle=request.form("title") strFirstname=request.form("firstname") strLastName=request.form("lastname") strPatronymic=request.form("patronymic") strPosition=request.form("position") strNameoftheinstitution=request.form("institution") strCountry=request.form("country") strEmail=request.form("email") strPhone=request.form("phone") strFax=request.form("fax") strPresntationtitle=request.form("presentationtitle") strSession=request.form("session") DIM Mail, strMsgHeader Set Mail = Server.CreateObject("???????????") Mail.Host = "??????????" Mail.From = strEmail Mail.AddAddress "????@tsu.ge" Mail.AddCC "????@tsu.ge" Mail.Subject = "ICSP: Online Form" strMsgHeader = "????????????????????." & vbCrLf & vbCrLf Mail.Body=strMsgHeader & "email: " & strEmail & vbCrLf & _ "First Name: " & strFirstName & vbCrLf & _ "Last Name: " & strLastName & vbCrLf & _ "Patronymic: " & strPatronymic & vbCrLf & _ "Position: " & strPosition & vbCrLf & _ "Name of the institution: " & strNameoftheinstitution & vbCrLf & _ "Country: " & strCountry & vbCrLf & _ "Email: " & strEmail & vbCrLf & _ "Phone: " & strPhone & vbCrLf & _ "Fax: " & strFax & vbCrLf & _ "Session: " & strSession & vbCrLf & _ "Presntationtitle: " & vbCrLf & strPresntationtitle On Error Resume Next Mail.Send Set Mail = Nothing IF Err <> 0 THEN Response.Write "There has been an error and your message could not be sent through email. Please try once again or try again later. " & Err.Description END IF %>
<% Response.Write strFirstName & ",
" Response.Write "Your message has been successfully sent." %>,