Microsoft Vbscript Runtime Error 800a01f5
Forum Visual Basic Programming Visual Basic 6.0 Programming VBScript Illegal assignment: 'i' If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register or Login 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 3 of 3 Thread: VBScript Illegal assignment: 'i' Tweet Thread Tools Show Printable Version Email this Page… Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode April 18th, 2008,11:06 AM #1 Nibinaear View Profile View Forum Posts Member Join Date Dec 2004 Posts 438 VBScript Illegal assignment: 'i' I've just learning VBScript, so this is probably easy to sort out: Code: Microsoft VBScript runtime error '800a01f5' Illegal assignment: 'i' /dima_devel/template_display_functions.asp line 15 I have a template which is working perfectly on all pages, but when I include the md5.asp file I get an error, obviously the two must be clashing. Here is the code for the line it's referencing: Code: 'Displays the breadcrumb bar using the parameter array as the source of the data Sub outputBreadcrumbArray(breadcrumb_array) array_length = UBound(breadcrumb_array) 'Response.write(array_length) If array_length < 2 Then x = 0 Else x = 1 End if for i = x to array_length if i=array_length then %> <%=breadcrumb_array(i,0) %> <% Else %> <%=breadcrumb_array(i,0) %> > <% end if Next End Sub The for i = x to array_length line is line 15. I've tried changing i and x variables in md5.asp which is the file it's referencing. The md5 file is a standard set of functions for generating md5 hashes in asp. Like I say if I take out the link to this md5 file everything works, but obviously without the functionality to make it do hashes. Just posting here as a last resort. Reply With Quote April 18th, 2008,03:06 PM #2 SoToasty1 View Profile View Fo
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, http://forums.codeguru.com/showthread.php?451185-VBScript-Illegal-assignment-i just like you, helping each other. Join them; it only takes a minute: Sign up What’s wrong with this ASP Code; how would you fix it [closed] up vote -4 down vote favorite When i run the script it says Microsoft VBScript runtime error '800a01f5' Illegal assignment: 'MAX_AGE' /classic.asp, line 8 This is the script: response.Write(GetMaxAge()) http://stackoverflow.com/questions/17592121/what-s-wrong-with-this-asp-code-how-would-you-fix-it Function GetMaxAge() const MAX_AGE = 50 Dim iRtnValue MAX_AGE = 45 iRtnValue = MAX_AGE GetStudentAge = iRtnValue End Function asp-classic share|improve this question edited Jul 11 '13 at 14:40 Anzeo 10.8k44572 asked Jul 11 '13 at 11:25 user580950 1,22472756 closed as off-topic by Pekka 웃, Mark, Anzeo, Pere Villega, djf Jul 11 '13 at 15:29 This question appears to be off-topic. The users who voted to close gave this specific reason:"Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist" – Pekka 웃, Mark, Anzeo, Pere Villega, djfIf this question can be reworded to fit the rules in the help center, please edit the question. How is MAX_AGE declared? –Mark Jul 11 '13 at 14:23 add a comment| 3 Answers 3 active oldest votes up vote 2 down vote accepted You are returning GetStudentAge instead of GetMaxAge. I mean "GetStudentAge = iRtnValue
name + Ask a Question Need help? Post your question and get tips & solutions from a community of 418,590 IT Pros & Developers. https://bytes.com/topic/asp-classic/answers/55385-microsoft-vbscript-runtime-0x800a01f5-illegal-assignment-variable-name It's quick & easy. Microsoft VBScript runtime (0x800A01F5): Illegal assignment: variable name P: n/a Matt <% hour = Request("controlname") %> will yield the following error: Microsoft VBScript runtime (0x800A01F5) Illegal assignment: 'hour' http://www.bigresource.com/ASP-Microsoft-VBScript-runtime-0x800A01F5-Illegal-assignment-vN8n6cUq.html However, if I declare hour, then it is fine. <% Dim hour hour = Request("controlname") %> But I think in VBScript, declaration of a variable is optional? That means we can microsoft vbscript use the variable without writing "Dim hour" ?? Please advise! thanks! Jul 19 '05 #1 Post Reply Share this Question 3 Replies P: n/a Gervin If u use a variable name that is NOT a function name as well, then u don't have to declare it. Hour( ) is a built-in function. "Matt"
However, if I declare hour, then it is fine. <% Dim hour hour = Request("controlname") %> But I think in VBScript,declaration of a variable is optional?That means we can use the variable without writing "Dim hour" ?? View Replies Similar Messages: Illegal Assignment 800a01f5 Illegal Assignment Microsoft VBScript Runtime Microsoft VBScript Runtime (0x800A0046) Microsoft VBScript Runtime (0x800A01FB) Microsoft VBScript Runtime (0x800A0046) Microsoft VBScript Runtime (0x800A0005) Microsoft VBScript Runtime Error '800a000d' Microsoft VBScript Runtime Error '800a01a8' Microsoft VBScript Runtime Error '800a000d' Microsoft VBScript Runtime Error '800a01ad' Microsoft VBScript Runtime Error '800a01c9' Microsoft VBScript Runtime Error '800a004c' Microsoft VBScript Runtime Error '800a01fb' Out Of Memory :: Microsoft VBScript Runtime (0x800A0007) Microsoft VBScript Runtime Error '800a0009' Microsoft VBScript Runtime Error '800a01f4' Microsoft VBScript Runtime Error '800a000d Microsoft VBScript Runtime Error '800a000d' .... Microsoft VBScript Runtime Error '800a0005' Microsoft VBScript Runtime Error '800a0046' Error :: Microsoft VBScript Runtime (0x800A000D Microsoft VBScript Runtime Error '800a0009' Microsoft VBScript Runtime How To Avoid The Error Microsoft VBScript Runtime Error '800a000d' Means Of Microsoft VBScript Runtime Error '800a01a8' Microsoft VBScript Runtime (0x800A0009) Subscript Out Of Range Microsoft VBScript Runtime (0x800A0009) ... Subscript Out Of Range Microsoft VBScript Runtime (0x800A000D) Type Mismatch Out Of Memory :: Microsoft VBScript Runtime Error '800a0007' Multidimensional Array :: Microsoft VBScript Runtime (0x800A000D) Microsoft VBScript Runtime (0x800A0046), Permission Denied ADVERTISEMENT Illegal Assignment declaring an variable for incrementing called "I" as shown below: I = 0 Gives this error: Microsoft VBScript runtime error '800a01f5' Illegal assignment: 'I' /thx.com.au/includes/cart.funcs.asp, line 20 View Replies View Related 800a01f5 Illegal Assignment I'm fighting a bit of code which I simply don't understand why it won't work. originalurl is the referring page from which someone clicked a form submit. I grab originalurl using Request.ServerVariables("HTTP_REFERER")What I need to do is to grab the value following idcategory=. Sometimes there are other querystring values following that, and my code works fine. But in the instances where it is the last querystring value, it fails on this error:Microsoft VBScript runtime error '80