Problem in rtf field

How to search keywords/text in RTF field through lotus script

Subject: Problem in rtf field

Use something like that

TextToScan$ = MyDocument.GetItemValue(“MyRtField”)(0)

Position = Instr(TextToScan$,“MyKeyWord”)

If Position > 0 Then

— Found !!! do what you want —

end if