Microsoft Vbscript Runtime Error Name Redefined
visit, 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 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 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
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 http://www.vbforums.com/showthread.php?26694-Name-redifined-error 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: https://forums.digitalpoint.com/threads/what-is-wrong-name-redefined.199077/ 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." %>,
runs OK directly, but not when using the wrapper: C:\Program Files\NSClient++>cscript scripts\check_veeam.vbs BackupJob1 /w:1 /c:2Microsoft (R) Windows Script Host Version 5.8Copyright (C) Microsoft Corporation. All microsoft vbscript rights reserved. Job: BackupJob1 last ended on 8-4-2014 13:43 was Successful, Days sincelast successful backup: 0, Bytes Backed Up: 42.0 GB, Elapsed Time: 6 Minutes. C:\Program microsoft vbscript runtime Files\NSClient++>cscript //T:30 //NoLogo scripts\lib\wrapper.vbs scripts\check_veeam.vbs BackupJob1/w:1 /c:2C:\Program Files\NSClient++\scripts\lib\wrapper.vbs(0, 1) Microsoft VBScript runtime error: Name redefined: 'OK' I presume this is because the check_veeam.vbs script has the following definitions, which are also in NagiosPlugins.vbs: Const OK = 0[[BR]]Const WARNING = 1[[BR]]Const CRITICAL = 2[[BR]]Const UNKNOWN = 3[[BR]] Can anyone suggest the best way to resolve this? Home Categories FAQ/Guidelines Terms of Service Privacy Policy Powered by Discourse, best viewed with JavaScript enabled NSClient++ News Download Documentation Support Forums