[thelist] Help Finding & Fixing VBScript Error... Arrrgghhh!

Ken Schaefer Ken at adOpenStatic.com
Mon Mar 14 19:47:51 CST 2005


Hi,

The problem is your coding. You need to know something about ASP, and writing
VBScript before you start to troubleshoot these issues.

Furthermore, the type of code you have is awful - it's all intermingled ASP
and HTML, and that makes it really difficult to track down what the problem
is. You may want to consider using an alternate coding design that eliminates
this intermingling. Additionally, you might want to consider using a debugger
to help track down issues.

Now, you removed the <% on line 365, which fixes the "expected statement"
error. 

However you're now getting a different error. Can you please post lines
340-370 that you now have, so we can have a look at what's going on?

Cheers
Ken

: -----Original Message-----
: From: thelist-bounces at lists.evolt.org [mailto:thelist-
: bounces at lists.evolt.org] On Behalf Of Administrative HQ
: Sent: Tuesday, 15 March 2005 2:37 AM
: To: Ken Schaefer; thelist at lists.evolt.org
: Subject: Re: [thelist] Help Finding & Fixing VBScript Error... Arrrgghhh!
: 
: Hi.
: 
: Thanks for the reply.
: 
: Sounds logical, but I can't seem to solve it. Removing
: the <% on 365 gets me:
: 
: **********************
: Microsoft VBScript compilation error '800a03f6'
: 
: Expected 'End'
: 
: /pay_paypal.asp, line 366
: **********************
: 
: Removing the one on 366 returns the same and removing
: both yields:
: 
: **********************
: Microsoft VBScript compilation error '800a03f6'
: 
: Expected 'End'
: 
: /pay_paypal.asp, line 360
: **********************
: 
: Removing the <% from 357 gets us:
: 
: **********************
: Microsoft VBScript compilation error '800a0400'
: 
: Expected statement
: 
: /pay_paypal.asp, line 366
: 
: <%end if
: ^
: **********************
: 
: Other attempts - like removing the whole section -
: just brought an "expected end" error up on line 280
: (which looks like it is ended and which looks EXACTLY
: as it does on a working page).
: 
: This is starting to get maddening. Any ideas how to
: track this sort of problem down??
: 
: Thanks very much.
: 
: Regards,
: David
: 
: --- Ken Schaefer <ken.schaefer at gmail.com> wrote:
: 
: <re-inserted>
: 
: 354 NAME="item_name" id="item_name" VALUE="CD
: SPANISH">
: 			<INPUT TYPE="hidden"       355 NAME="item_number"
: id="item_number" VALUE="13">
: 356
: 357			<%
: 358			end select
: 359
: 360 			else%>
: 361			<INPUT TYPE="text" disabled NAME=""
: VALUE="Course">
: 362			<INPUT TYPE="hidden" NAME="item_name"
: id="item_name" VALUE="CD EN">
: 363			<INPUT TYPE="hidden" NAME="item_number"
: id="item_number" VALUE="1">
: 364				<input TYPE="HIDDEN" NAME="Language"
: id="Language" VALUE="EN">
: 
: </re-inserted>
: 
: >> 365                     <%
: >> 366                     <%end if%>
: >
: > You have two opening <% one after the other.
: > After the first <%, ASP is expecting some kind of
: > statement, instead
: > it's seeing a second <%, hence "expected statement"
: > error.
: >
: > Cheers
: > Ken
: 
: 
: 
: 
: __________________________________
: Do you Yahoo!?
: Yahoo! Sports - Sign up for Fantasy Baseball.
: http://baseball.fantasysports.yahoo.com/
: --
: 
: * * Please support the community that supports you.  * *
: http://evolt.org/help_support_evolt/
: 
: For unsubscribe and other options, including the Tip Harvester
: and archives of thelist go to: http://lists.evolt.org
: Workers of the Web, evolt !


More information about the thelist mailing list