Asp Class Syntax Error
Contents |
VBScript causes syntax error in different VBScript Class The SitePoint Forums have moved. You can now find them here. This forum is now closed to new posts, but you syntax error identifier class can browse existing content. You can find out more information about the move
Syntax Error On Token Class
and how to open a new account (if necessary) here. If you get stuck you can get support by emailing syntax error on token class invalid type forums@sitepoint.com If this is your first 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
Syntax Error On Token Class @ Expected
to proceed. To start viewing messages, select the forum that you want to visit from the selection below. SitePoint Sponsor User Tag List Results 1 to 6 of 6 Thread: Inline VBScript causes syntax error in different VBScript Class Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode Feb 25, 2009,12:10 #1 ernie999 View Profile View syntax error on token class char expected Forum Posts SitePoint Member Join Date Feb 2009 Posts 3 Mentioned 0 Post(s) Tagged 0 Thread(s) Inline VBScript causes syntax error in different VBScript Class Hi everyone, this seems to be quite a complex problem. I've been racking my brains for days about this and can't figure out why this problem occurs. If anyone can help I would be very greatful. I have an ASP Page that has several nested includes in it. The original ASP Page has some inline VBScript. One of the nested includes uses a VBScript Class. On the problem page if I position the include before the inline VBScript the code works without issue however the html that the include produces is not in the correct place. If I position the include after the inline script then I receive the following error. Microsoft VBScript compilation error '800a03ea' Syntax error /templates/tab/rss_content_feed_class.1 Unanswered Topics Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP Professional Weird Syntax Error User Name Remember Me? Password Reminder Password Register Register | FAQ | Members List | Calendar | Today's Posts | Search Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0. Search Forums Show Threads microsoft vbscript compilation error '800a03ea' function Show Posts Advanced Search Find All Thanked Posts Go to Page... Welcome to the p2p.wrox.com Forums. You are currently viewing the Classic ASP Professional section of the Wrox Programmer to Programmer discussions. This is a http://www.sitepoint.com/forums/showthread.php?602195-Inline-VBScript-causes-syntax-error-in-different-VBScript-Class 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 to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free . Thread Tools Display Modes #1 (permalink) February http://p2p.wrox.com/classic-asp-professional/53533-weird-syntax-error.html 2nd, 2007, 08:03 AM mjhoagland Authorized User Join Date: Feb 2006 Location: , , . Posts: 19 Thanks: 0 Thanked 0 Times in 0 Posts Weird Syntax Error For some reason, I keep getting a syntax error on a new page I created. It's on an include that SEVERAL ((dozens)) of other pages also utilize, thus, I don't understand why it's producing an error on this particular page. Here's the full error message: Quote: quote:Microsoft VBScript compilation error '800a03ea' Syntax error /includes/xmlHandler.asp, line 12 Class exportXML ^ And here's the surrounding lines of code for line 12: Quote: quote:<% '################################################# ####### '# include file for handling all XML '################################################# ####### '-- set global variables Dim oXML Dim oRoot Dim xI, xJ, xK Class exportXML <<<< LINE 12 dim SQL dim xInd dim oFS dim qFile dim oCmd dim oStream Any suggestions? Thanks. #2 (permalink) May 1st, 2007, 02:53 PM MarkDelano Registered User Join Date: May 2007 Location: , , . Posts: 1 Thanks: 0 Thanked 0 Times in 0 Posts It looks like this is what happens when you try to conditionally include an ASP page that defines a class. #3 (permalink) May 1st, 2007, 06:35 PM mat41 + Ask a Question Need help? Post your question and get tips & solutions from a community of 418,430 IT Pros & Developers. It's quick & easy. Weird VBScript Syntax error in an ASP https://bytes.com/topic/asp-classic/answers/59609-weird-vbscript-syntax-error-asp-page-800a03ea page -> '800a03ea' P: n/a NanQuan I'm hoping someone can help me solve this error since I am at a total loss here. Usually I don't bother posting on any forums or groups on the internet and prefer https://www.daniweb.com/programming/web-development/tutorials/19997/understanding-asp-classes to solve stuff myself but this is a total mistery. I have a function inside an ASP page as a result of which I get the following error message: Microsoft VBScript compilation error '800a03ea' Syntax error /admin/dev/Order/process.asp, syntax error line 160 Function heenEncode(string) ^ I developed this function in a seperate ASP page and it worked with no problems what so ever. However when I finished developing it and proceeded to implement it in my another ASP page I suddenly got this weird error suggesting that there's something wrong with my syntax. Here is the function: <% Function heenEncode(string) x = Len(string) y = Len(string) a = 1 Set d = Server.CreateObject("Scripting.Dictionary") Do While x>0 syntax error on T = heen(Mid(string,a,1)) d.Add x, T a = a + 1 x = x - 1 Loop Do While y>0 TT = TT + d.Item(y) y = y - 1 Loop Set d = Nothing heenEncode = TT End Function Function heen(letter) dim ArHeb,ArEng ArHeb =Array("à","á","â","ã","ä","å","æ","ç","è","é","ë" ,"ì","î","ð","ñ","ò","ô","ö","÷","ø","ù","ú","õ"," ê","ó","ï","í") ArEng =Array("a","b","c","d","e","f","g","h","i","j","k" ,"l","m","n","o","p","q","r","s","t","u","v","w"," x","y","z","@") x = 26 Do While (x > -1) If letter = ArHeb(x) Then letterT = ArEng(x) End If x = x - 1 Loop If letterT = "" Then heen = letter Else heen = letterT End If End Function %> The 2nd function is a part of the first function, but it's not defined within the first function so please don't start suggesting that as a possible cause for the problem, plus it worked fine on a seperate ASP page just as it is. Any help would be greatly appreciated, since I read through some of the posts here regarding this error, but I couldn't find any solution that will work for my specific situation. Thanks!! Jul 19 '05 #1 Post Reply Share this Question 5 Replies P: n/a Chris Barber I put it into VB 6.0 and it complained about the use of 'string' as a variable name - it's a reserved word of course as the definition of a datatype. Change it. Chris. "NanQuan" 8Contributors 8Replies 21Views 11 YearsDiscussion Span 4 Years Ago Last Post by buck1107 2 11 Years Ago The aim of this tutorial is to save burgeoning self taught developers some of the early pitfalls that lurk on the road to programming enlightenment. It will attempt to do this by distilling the last 50 years of software engineering philosophy into a relatively short single tutorial, applying the concepts along the way in the medium that is in most need of its principals: web development. Several assumptions have been made about your level of knowledge, such as having an understanding of the Visual Basic Scripting syntax for Active Server Pages (ASP) and the ability to create and ADO connection and recordset objects for example. If you don’t have a clue what is meant by looping through your recordset to make an HTML Table or List Control then, to be honest, you are probably not quite ready for this tutorial. If you are still reading then you are probably wondering why ASP when it has been superseded by ASP.NET? The truth is that ASP is far from dead and anyway, the stuff covered here will make the move to ASP.NET from ASP that much easier anyway, if and when you should find yourself in that position. Building a web application from the snippets garnered from a ‘learn ASP in 24 hours’ tutorial is all well and good, and can be done. But be warned that further down the road you may face headaches maintaining that system. So let’s look at how you should be thinking of applying the syntax you have already learnt in order to avoid those headaches. Let us start by introducing Object Oriented Programming (OOP), the natural step onward from structured programming. Computing hardware was become cheaper and more powerful, the problems that needed to be solved and therefore the software requirements were becoming ever more complex. What was needed was a better way to model the real world problems that were to be solved with our software. In order Syntax Error Unexpected Class
Vbscript Error 800a03ea