Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 17th, 2006, 05:59 PM
Registered User
 
Join Date: Aug 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to SquishyB
Default Unclosed IF statement

Hi guys,
I have developed this code and it was working fine but now there is an IF statement out somewhere, which I cannnot find. The code isn't neat, im sorry, but i was wondering if someone could help me here. The error i currently get is...

Error Type:
Microsoft VBScript compilation (0x800A03F6)
Expected 'End'
/csdoors/calc/calc.asp, line 1250

Be great if you could help me find this! I have looked and looked but can't seem to work it out. Thanks...

http://adau.dnsalias.com/csdoors/calc/calc.zip

...SquishyB



 
Old August 17th, 2006, 11:21 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

By the looks of things you are missing an end if. I notice its line 1250. Dont post the whole page just the problematic part. If you line your if's up with your end if's these things are easier to troubleshoot. EG:

IF...
   IF...

   END IF
END IF

To avoid this in the future every time you write an if write its end if, then work on the code between.

Wind is your friend
Matt
 
Old August 18th, 2006, 12:20 AM
Registered User
 
Join Date: Aug 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to SquishyB
Default

Yeah the problem is that line 1250 contains <% END IF %> so i dont know whats going on. Thats why i posted the whole page, because it might be something further up.

Thanks for the advice though, i will do in future!

 
Old August 18th, 2006, 01:24 AM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

;;;so i dont know whats going on
you are missing an IF (not an end if. My mistake, sorry...)

IMO it would be very good for your coding to find it yourself. I come here for help, and help others where I can in appreciation for the solutions the members here at wrox give thier time to. Constructivley; Im not sure you will find someone here who is willing to wade through 1250 lines of code chasing a lazy missing IF. Sorry budy..

Wind is your friend
Matt





Similar Threads
Thread Thread Starter Forum Replies Last Post
problem unclosed quotation mark. HelpHelp waiwaisan VB Databases Basics 1 January 4th, 2007 05:29 AM
if/else statement mussa Beginning PHP 5 July 3rd, 2006 06:06 PM
What does the @ do in the following statement? kenn_rosie VB.NET 2002/2003 Basics 1 March 15th, 2006 12:20 PM
With Statement aliddle General .NET 1 February 9th, 2005 09:22 AM
If Statement Help bjackman Access VBA 3 November 19th, 2003 02:26 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.