>Hi,
>
>I have a database to record many information, all information will store in a memo field.
>
>Now i need to write a search-system to help me to find information from those record. I will use this command
>( "ibm" $ MYMEMO .or. "IBM" $ UPPER(MYMEMO )
>to found out which record is match i need and display them in EDIT.box
>
>Question:-
>1. How can move the cursor at the words "IBM" inside Edit.box
>2. How can i high-light ( change color ) on "IBM" words inside Edit.box
>3. or more suggest to me. ( i want to do it as like as google search engineer )
You can not highlight several selections with a standard EditBox.
You can select a single text (as when you select text with the cursor), using the properties .SelStart and .SelLength.
If you want to apply different kinds of formats, you might use an RTF control. IIRC, there is a sample included in the VFP samples.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)