long line in script

Ken Ray kray at sonsothunder.com
Wed Nov 16 13:11:46 EST 2005


On 11/16/05 12:03 PM, "Preston Shea" <darkshadow1 at metrocast.net> wrote:

> Is there a way to break a long line in a script into shorter bits so that
> Hscroll is not necessary?

Yes; you can use the line continuation character "\" between words, so long
as it is in a logical place (i.e. not in the middle of a quoted string, or a
parenthesized chunk of calculations). Generally it's used when concatenating
things with "&", like:

  put (the long id of field 1) && "="  & \
    (the text of field 1)

Check out "backslash" in the Transcript Dictionary for more info.


Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: kray at sonsothunder.com




More information about the use-livecode mailing list