Command WR Get RTF expression

4D Write

WR Get RTF expression

version 6.7


WR Get RTF expression (area) Text

ParameterTypeDescription
areaLongint4D Write area

Function result Text Content of the RTF expression

Description

The WR Get RTF expression command allows recuperating the text of the RTF expression currently selected within area.

To select RTF expressions contained in a 4D Write document, you should use the WR Count(Area;wr nb RTF expressions) command and then make a loop for WR SELECT(Area;14;$loop).

Example

You want to get RTF expressions contained in your 4D Write document:

   C_LONGINT(Area;$i;$NbRTFExp)
   C_TEXT($MyExp)

   $NbRTFExp:=WR Count(Area;wr nb RTF expressions) 
   For($i;1;$NbRTFExp)
      WR SELECT(Area;14;$i)
      $MyExp:=WR Get HTML expression(Area)
   End for

See Also

WR INSERT RTF EXPRESSION.