Code Comments
Programming Forum and web based access to our favorite programming groups.On Thu, 23 Aug 2007 11:46:04 +0100,
Jonathan Bromley <jonathan.bromley@MYCOMPANY.com> wrote:
> Try
> append AddText \n
> or, if you find that too alarming,
> append AddText "\n"
> or even (NOT nice!)
> append AddText {
> }
> (note that the braces contain just a literal newline).
There's always one of my favourite ways...
set text [list]
lappend text "First Line"
lappend text "Second Line"
puts [join $text \n]
It leaves the text [foreach]able until the very last moment. You just
have to remember that initial [set], or something similar (unless
you're certain the variable doesn't exist at all, and don't mind it
being a PITA to read).
Fredderic
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.