Purpose:
Returns a string in RTF-format. This is necessary because some strings may contain one of the specially defined RTF-format symbols. ('\', '{' or '}'). For compatibility reasons, this function only processes the passed string if the optional second parameter is explicitly set to True.
Parameter:
String
Boolean
Return value:
String
Example:
If, for example, the field PRODCODE could contain one of the characters, then the text should be inserted in the following way:
"<<SALUTATION>> <<NAME>>, You have received our product <<PRODUCT>>, Code <<ToRTF$(PRODCODE)>>..."