Xbasic

RTF_FIELD_TO_TEXT Function

Syntax

Text_String as C = rtf_field_to_text(C fieldname )

Arguments

fieldname

The name of an RTF memo field.

Description

RTF_FIELD_TO_TEXT() returns a text string with the data in a RTF memo field. This function is useful for extracting the data in a RTF memo field.

Example

The following examples work with a table field named rtfmemo.

CONTAINSI(RTF_FIELD_TO_TEXT("rtfmemo"),"alpha") -> searches a RTF memo field called "rtfmemo" for the word "alpha".
' assuming that the memo field contained "Alpha Software"
? "The memo contains: " + RTF_FIELD_TO_TEXT("rtfmemo")
= "The memo contains: Alpha Software"

See Also