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

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 Help with table font code?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

DarlingBri
Junior Member

United Kingdom
378 Posts

Posted - 06 May 2001 :  20:48:50  Show Profile  Visit DarlingBri's Homepage
I have the following code in a page:

 	    <TD><font size="<% =strDefaultFontSize %>"> <% response.write rsCategoryList("cDate") & " </font></TD><TD>" & rsCategoryList("cCategory") & "</TD></TR>" 
rsCategoryList.movenext
Loop
%>


The first font pairs work fine, and deliver what I'm looking for: my default Snitz font size. However, I cannot insert the Snitz font code into the second
<TD>
pair without getting an error.

I'm stuck. I'm not very good with ASP, and I don't understand why it's throwing a wobbly

Can anyone lend a hand? I'd be very grateful.

--Bri

"Bother," said Pooh, as Piglet was assimilated by the Borg.

Doug G
Support Moderator

USA
6493 Posts

Posted - 06 May 2001 :  23:34:35  Show Profile
It would help to know the wobbly you're getting back.

You might try putting everything in asp (response.write everything out), or break your code with some line breaks. If you use InterDev or FP sometimes the editor gets confused with the proliferation of >%> <<% type strings.


======
Doug G
======
Go to Top of Page

gor
Retired Admin

Netherlands
5511 Posts

Posted - 07 May 2001 :  00:49:07  Show Profile  Visit gor's Homepage
Try:

 	    <TD><font size="<% =strDefaultFontSize %>"> <% response.write rsCategoryList("cDate") & " </font></TD><TD><font size=""" & strDefaultFontSize & """>" & rsCategoryList("cCategory") & "</TD></TR>" 
rsCategoryList.movenext
Loop
%>


You need 3 " each time to make this work: 2 because you want to add a " inside "....." and 1 to close the string before you use & strVariable & to insert the fontsize variablevalue.

Pierre
Join the Snitz WebRing
Go to Top of Page

DarlingBri
Junior Member

United Kingdom
378 Posts

Posted - 07 May 2001 :  15:38:08  Show Profile  Visit DarlingBri's Homepage
Thank you, that's *brilliant*!! Worked great, and now I think I understand. I'll try to apply it in some of the other places making the code changes on my own.

"Bother," said Pooh, as Piglet was assimilated by the Borg.
Go to Top of Page

gor
Retired Admin

Netherlands
5511 Posts

Posted - 07 May 2001 :  16:27:58  Show Profile  Visit gor's Homepage
You're welcome

Pierre
Join the Snitz WebRing
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.25 seconds. Powered By: Snitz Forums 2000 Version 3.4.07