p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Classic ASP Basics (http://p2p.wrox.com/forumdisplay.php?f=61)
-   -   error msg not sure how to code this (http://p2p.wrox.com/showthread.php?t=42969)

De-zypher May 24th, 2006 12:13 PM

error msg not sure how to code this
Hello all,

     Let me say that I am a new person to asp coding...but here is what im getting in an error and description of what im trying to do...

Microsoft VBScript compilation error '800a0408'

Invalid character

/includes/forum_jump_inc.asp, line 62

Response.Write("class=Timetxt" & _ strTxtJumpTo & _

now what im trying to do is have the css class timetxt (this is nothing more than a color change for the font defined in a css file, and yes that file is "included") applied to the txt jump to. and then have the default tx color applied back to the rest of the txt. Ive tried several different ways..but can get it

thanks for any suggestions...

woodyz May 24th, 2006 04:05 PM

THe underscore character is the line continuation character. It tells the interpreter that the line continues on the next line. Your code indicates that you are still on the same line, so you don't need the continuation character at that point in your code (this assumes that after the second underscore you actually are continuing on the next line):

Response.Write("class=Timetxt" & strTxtJumpTo & _

Woody Z http://www.learntoprogramnow.com

All times are GMT -4. The time now is 05:42 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.