... , i got a message. This can not be the intention. I expect a construction as : DO WHIL oRtf:Find( Esc-sequens ON , .T. ) // Bold on nFrom := oRtf:GetPos() oRtf:ReplaceSel( .F. , "" ) oRtf:Find( Esc-sequens OFF , .T. ) // Bold Off nTo := oRtf:GetPos() oRtf:ReplaceSel( .F. , "" ) oRTF:SetSel(nFrom ...