Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 inc_header syntax error
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Cailean
New Member

Canada
75 Posts

Posted - 30 October 2003 :  13:15:42  Show Profile
I was trying to make a simple edit to inc_header so that the "Members" link for
admins would point to "members.asp?method=lastheredatedesc" rather than
just members.asp...basically just to save me a step since I check that alot.

I changed the code to the following (around line 500) but get a syntax error at the if statement:
(added lines in red)
	Response.Write	"          |" & vbNewline & _
	if mlev = 4 then
		Response.Write	"          <a href=""members.asp?method=lastheredatedesc""" & dWStatus("Current members of these forums...") & " tabindex=""-1""><acronym title=""Current members of these forums..."">Members</acronym></a>" & vbNewline & _
	else
		Response.Write	"          <a href=""members.asp""" & dWStatus("Current members of these forums...") & " tabindex=""-1""><acronym title=""Current members of these forums..."">Members</acronym></a>" & vbNewline & _
        end if
	Response.Write	"          |" & vbNewline & _
			"          <a href=""search.asp"


Any ideas?

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 30 October 2003 :  13:57:10  Show Profile
you need to remove the:

& _

from the 2 lines of code that you have within the if/then statement

and also from the line of code just before the if/then statement.
Go to Top of Page

Cailean
New Member

Canada
75 Posts

Posted - 30 October 2003 :  14:47:40  Show Profile
Thanks Richard!

So, just for those of us not fluent in ASP, what does & _ represent?
Go to Top of Page

davemaxwell
Access 2000 Support Moderator

USA
3020 Posts

Posted - 30 October 2003 :  15:10:22  Show Profile  Visit davemaxwell's Homepage  Send davemaxwell an AOL message  Send davemaxwell an ICQ Message  Send davemaxwell a Yahoo! Message
quote:
Originally posted by Cailean
So, just for those of us not fluent in ASP, what does & _ represent?



& _ tells the parser to continue with the next line as if it was still on the current line of code.

In the example you were having a problem with, it tried to attach the if statement into the response.write, which gave it an error.

Dave Maxwell
Barbershop Harmony Freak
Go to Top of Page

davemaxwell
Access 2000 Support Moderator

USA
3020 Posts

Posted - 30 October 2003 :  15:10:45  Show Profile  Visit davemaxwell's Homepage  Send davemaxwell an AOL message  Send davemaxwell an ICQ Message  Send davemaxwell a Yahoo! Message
oops. Too slow.

Dave Maxwell
Barbershop Harmony Freak
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 30 October 2003 :  15:11:10  Show Profile
yours was a better explanation, I deleted mine...
Go to Top of Page

Cailean
New Member

Canada
75 Posts

Posted - 30 October 2003 :  15:34:28  Show Profile
Thanks a bunch, guys!
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.39 seconds. Powered By: Snitz Forums 2000 Version 3.4.07