Command WR Get styled text

4D Write

WR Get styled text

version 6.5


WR Get styled text (area) BLOB

ParameterTypeDescription
areaLongint4D Write area

Function result BLOB Formatted text

Description

The WR Get styled text command returns the selected text in the 4D Write area referenced by area a BLOB field or variable. The structure of the BLOB returned represents the selected text with both character and paragraph formatting included, although without style sheets.

Text that is returned using the WR Get styled text command can be placed into another 4D Write document using the WR INSERT STYLED TEXT command. The page layout of the 4D Write document into which the styled text is inserted will not be affected by the insertion.

By using the WR Get styled text and the WR INSERT STYLED TEXT commands you can simulate a Copy/Paste operation while using a BLOB as a buffer instead of the clipboard.

Warning: The BLOB returned by WR Get styled text cannot be used with the WR BLOB TO AREA command since it does not include all the elements of a 4D Write area.

Example

See the example for the WR INSERT STYLED TEXT command.

See Also

WR INSERT STYLED TEXT.