Error getting tags :
error 404Error getting tags :
error 404 formattedText | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
formattedText
Basics
Expander triangle
Type
Property
Syntax
set the formattedText of field to string get the formattedText of field
Introduced
1.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
Summary
Unwraps hard-wrapped lines, or provides the hard-wrapped contents of a field.
Examples

write the formattedText of field 1 to file myTextFile

Additional Comments
Expander triangle

Use the formattedText property to convert between unwrapped text (suitable for use in most programs) and wrapped text (suitable for use in programs that require fixed line lengths, such as some email systems).

Value:

The formattedText of a field is a string.

Comments:

When you get a field's formattedText, the field's text is converted to hard-wrapped text: An end-of-line character is inserted at the end of each screen line, and wherever a return character occurs in the field, two end-of-line characters are substituted. (If the field's dontWrap is true, each screen line ends in an end-of-line character, so two end-of-line characters are substituted for each return character in the field.)

Cross-platform note: The end-of-line character depends on the platform: a return (ASCII 13) on Mac OS systems, a linefeed (ASCII 10) on Unix systems, or a return and linefeed on Windows systems.

When you set a field's formattedText property, the string is unwrapped before being put in the field. Double end-of-line characters are converted to a single end-of-line character, and single end-of-line characters are converted to spaces.

User Comments
Expander triangle