Re: Multiline Strings in ASP/VBScript

by "Frank Boumphrey" <bckman(at)ix.netcom.com>

 Date:  Sat, 8 Jun 2002 01:04:53 -0400
 To:  <hwg(at)miscsites.com>,
<hwg-techniques(at)hwg.org>
 References:  localhost
  todo: View Thread, Original
php (and I think perl also)will read to a semicolon, and will read in the
line breaks. You can't do this in VB. The underscore was a big leap forward,
before you had to go
strBlah="Blah"
strBlah=strBlah & "Blah"
strBlah=strBlah & "Blah"

There wasn't even a concatenation short cut!

HTH

Frank
----- Original Message -----
From: "Doug Dossett" <hwg(at)miscsites.com>
To: <hwg-techniques(at)hwg.org>
Sent: Friday, June 07, 2002 2:48 PM
Subject: Multiline Strings in ASP/VBScript


> Hello all:
>
> Let's say I have a block of code/text like:
>
> <.blah>Text<./blah>
> More Text
>
> Even More Text
>
> When assigning something like this to a variable I've always done
something like:
>
> strBlah = "<.blah>Text<./blah>" &_
> "More Text" & vbcrlf & vbcrlf &_
> "Even More Text"
>
> Is there some better way of doing this?  I know in Perl and I think PHP
you can just
> give it a special name (sorry can't remember exactly how at the moment)
then just do
> something like:
>
> strBlah = BLAH
> <.blah>Text<./blah>
> More Text
>
> Even More Text
> End BLAH
>
> How can you do this in vbscript/ASP or is it just not possible?  Hopefully
that all make
> sense.
>
> Thanks much,
>
> Doug

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA

This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.