Translate metadata to field content

Ralph DiMola rdimola at
Wed Feb 19 16:37:23 EST 2020

Wow! Being able to easily discern the number of lines in a wrapped field.
This question has been asked before "Line numbers for soft-wrapped styled
text?" but I don't remember formattedStyledText being one of the solutions.

Thanks for the explanation

Ralph DiMola
IT Director
Evergreen Information Services
rdimola at

-----Original Message-----
From: use-livecode [mailto:use-livecode-bounces at] On Behalf
Of Niggemann, Bernd via use-livecode
Sent: Wednesday, February 19, 2020 12:41 PM
To: use-livecode at
Cc: Niggemann, Bernd
Subject: RE: Translate metadata to field content

>Ralph DiMola wrote:

>What is the difference between styledText and formattedStyledText? A 
>quick test yielded identical results. StyledText is in the dictionary.

>From what I tested it behaves the same as formattedText. I.e. if you have
wrapped text in a field it will keep the wraps when transferring to another
field although the destination field is large enough to hold the text
unwrapped. Of course formattedText is on raw text and does not include

Whereas formattedText inserts returns at the wrapping formattedStyledText
inserts vertical tabs = ASCII 11.

Thus the number of lines returns the same value when using
formattedStyledText whereas formattedText increases the number of lines if
there is any wrapping.

Kind regards
use-livecode mailing list
use-livecode at
Please visit this url to subscribe, unsubscribe and manage your subscription

More information about the use-livecode mailing list