Wrapping

LiveCode Builder is a language for extending LiveCode's capabilities, creating new object types as Widgets, and libraries that access lower-level APIs in OSes, applications, and DLLs.

Moderators: LCMark, LCfraser

Post Reply
dbrooksne
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4
Joined: Thu May 04, 2006 7:55 pm
Location: University of Nebraska
Contact:

Wrapping

Post by dbrooksne » Sun Nov 06, 2016 10:00 pm

This has been discussed as an issue back in April for a related text question. At that time it was suggested that each line would require a separate rectangle.

Suppose you have a widget that allows the user to make a single selection that allows related data to be returned.

Consider the lcb code line:
close popup returning tReturnedData

How do you construct the variable tReturnedData so that it have many lines? return, /r, /r:, "/r" don't seem to work.
David W. Brooks

peter-b
Posts: 182
Joined: Thu Nov 20, 2014 2:14 pm
Location: LiveCode Ltd.

Re: Wrapping

Post by peter-b » Sun Nov 06, 2016 11:15 pm

Code: Select all

"this is a string constant\ncontaining multiple lines\nseparated by linefeed characters.
The following escape sequences may be placed in LCB string literals:

"\q" -- double quote character (")
"\n" -- linefeed
"\r" -- carriage return
"\t" -- horizontal tab
"\u{ABCD}" -- Unicode codepoint U+ABCD
LiveCode Open Source Team — @PeterTBBrett — peter.brett@livecode.com

Post Reply

Return to “LiveCode Builder”