Multiline Assigning to a varable
Daniel,
If I understand the question correctly, you could reproduce the string as
follows:
myString = "Hello\nthis\nis\ngreat\nfun"
\n = new line
\t = tab
\' = single quote
\" = double quote
\\ = backslash
HTH
Tony Spratt
JLT Management Services
Quote:
> Im unsure as to weather or not JScript can perform multiline assigning to
> varables.
> The problem i have is i need to include " and ' and newline chars into a
> java varable. worst thing, its a CGI script that will generate Dynamic
> Javascript.
> Im am looking for something similar to this perl example for javascript.
Any
> ideas?
> $var = <<TEXT;
> Hello
> this
> is
> great
> fun
> TEXT
> --
> Thanks for your time.
> Daniel Wilson
> Server Administrator & Head Programmer
> Progressive Ideas
> http://www.animeland.net
> http://advertising.animeland.net