Richtext have many hi words but only one hi word boldCode:tbSearchResult = RichText.FindText("RichText1", "hi", 1, -1, false, false); for start,end in tbSearchResult do if (tbSearchResult) then RichText.SetSelection("RichText1", tbSearchResult.Start, tbSearchResult.End); tbFormat = {Bold=true}; RichText.SetSelectionFormat("RichText1", tbFormat, false); end end

Reply With Quote
.... ??
[ Working ~5 hour ] 