>I have created a search for a word on a memo fields using list
>here is the syntax:
>
>cVar = "Sample"
>List fields Memo for cVar $ upper(memo) to search.txt nocon
>modi comm search.txt
>
>my problem is I need to highlight all the search word(s) or make
>that word(s) on bold font. Is there any other way to do this?
In an EditBox or TextBox, you can select the first occurrence of the search word in the string by positioning
Control.SelStart = ATC(cVar,memo) and
Control.SelLength = LEN(cVar). If you need to highlight each occurrence in a single EditBox, you'll need to use a RichTextBox to display it, and then insert formatting codes in the string to boldface or underline or italicize each occurrence by searching the string and using STUFF() or the equivalent to add control sequences as needed. See the MSDN Library documentation on the RichTextBox control; there are classes in the VFP6 FFC which might be useful for inserting the control codes.