richtextdata(
richtextdata(
DATA
)

The richtextdata( function adjusts text so that it will display properly in rich text even if it contains a < character.

Parameters

This function has one parameter:

data – the text data to be displayed.

Description

This function adjusts text so that it will display properly in rich text even if it contains a < character. To prevent this character from confusing the richtextdisplay( function, enclose the field or variable with the richtextdata( function. The formula below will work correctly even if the Address field contains a `<` character.

    richtextdisplay("<b>"+First+" "+Last+"</b>"+cr()+
        richtextdata(Address)+cr()+City+" "+State+" <i>"+ Zip +"</i>")

In the example above, only the Address field is enclosed with the richtextdisplay( function. If you have any doubt about any field or formula used in rich text, enclose it with the richtextdisplay( function.

See Also

- richtextdisplay( -- works with Text Display objects to display text with multiple styles, fonts, colors and alignments.

History

Version | Status | Notes
10.0 | New | New in this version.