Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiple lines on a ASP page 1

Status
Not open for further replies.

JonClough

Programmer
Apr 16, 2003
7
GB
Hi,

When VB writing code, is there any way to write a multi line text string without having to put the &_ at the end of each line. There is in Perl but I cannot find anything in VB. The reason for this is so my custom components can deliver some large javascript functions that contain the " character. It'd take ages to go through them all and VB proof them. I know I could use the javascript include call but I would prefer to encapsulate them in the component.

Thanks

Jonathan
 
Nope. It's a big gripe of mine w/ VB. Because there's no endline character (like ; in c,c++,c#,java,etc...), then the end of a line is a line terminating character.

W/O the _, then it will treat it as such.

Why not write in C#?

penny.gif
penny.gif

The answer to getting answered -- faq855-2992
 
link9,

I'm just getting my head around VB.NET! I've also got two books that give all their examples in VB. Is C# much better?

Cheers

Jonathan
 
IMHO, Yes, it's better. Although you'll find many differing opinions on the subject, I started out using VB, and have completely switched.

At first, the deficiencies are not apparent, but the more I programmed w/ it, the less I liked it. When I got into dynamically loaded controls & events, that was the last straw. VB's behavior in this area cannot be described any other way but buggy. Very erratic behavior of my dynamic events.

Among the other plusses are:
cleaner syntax
; line termination
overloaded operators
better VS Intellisense performance (it's true)
more elegant handling of NULL values
value/reference type handling
C# is more strongly typed, leading to less runtime errors in testing

etc... etc...

Like I said, you'll get alot of argument on this one, but in this programmers humble opinion, it's simply no contest.

good luck :)
paul

penny.gif
penny.gif

The answer to getting answered -- faq855-2992
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top