This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

splitting variable text over mulitple lines???

Old posts that have not been replied to for several years.
Locked
m
matt2kjones
Voice
Posts: 24
Joined: Fri Feb 07, 2003 11:16 am

splitting variable text over mulitple lines???

Post by matt2kjones »

Hey currently i have my variables like this......

$var "one huge long line of text, which looks really bad when opened in a text editor"

is there anyway to split the test onto say 10 lines, but put all the text in one var???

so that you write the test on a few lines, but it appears in the var as one line

i tried this.....

$var "one huge
long line of
text split over
a few lines"

but it gave me and error :(

any ideas, i have check loads of tcl sites for this

thanx
http://www.thedigitaldream.co.uk
irc.thedigitaldream.co.uk #thedigitaldream
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

$var "..." ? that doesn't look like tcl to me. Try this:
set var {bla bla
bla}
T
TsT
Voice
Posts: 16
Joined: Tue Mar 04, 2003 11:03 am
Location: Strasbourg, France
Contact:

Post by TsT »

Or:
set var {bla bla\
bla}
(one line)
Locked