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. Nice...
Bernd, Thanks for the explanation Ralph DiMola IT Director Evergreen Information Services rdim...@evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of Niggemann, Bernd via use-livecode Sent: Wednesday, February 19, 2020 12:41 PM To: use-livecode@lists.runrev.com 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 styling. 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 Bernd _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode