Page 1 of 1
Multiple lines text in editor
Posted: Wed Jun 19, 2013 2:27 am
by jackads
Hello guys,
I'm very beginner in LiveCode, I would like to code using multiple lines in the code editor, like in the image.
My "account does not have permission" to post link so I attach the image.
Have anyway I can do like that? To write long querys is very bad to use a single line, you know?
Thanks for the help, cheers!

Re: Multiple lines text in editor
Posted: Wed Jun 19, 2013 4:26 am
by Simon
Hi Jack,
Use "\" (without the quotes) to start a new line.
I think that's what you mean.
Simon
Re: Multiple lines text in editor
Posted: Wed Jun 19, 2013 6:21 am
by dunbarx
Simon nailed it. But be careful, though you can break a line in most places with the line continuation character, you cannot break a literal:
Do not do this:
Rather do this:
Craig Newman
Re: Multiple lines text in editor
Posted: Wed Jun 19, 2013 8:12 am
by Adrian
As an alternative you can make use of "after" with a variable.
For example:
put "select ................................" into tSmething
put "from ............................." after tSomething
In your particular case, you perhaps would end with:
return tSomething
Re: Multiple lines text in editor
Posted: Wed Jun 19, 2013 7:34 pm
by jackads
Thanks guys,
I appreciated every answer, I don't want to use the
Code: Select all
put "select ................................" into tSmething
put "from ............................." after tSomething
way because it turns in a lot of code for big querys, only break the line with "&/" will be better for less code and to a better code read.
Thanks for the help, I love u all.
