Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to do..... as like as google search engineer
Message
From
02/11/2007 08:01:13
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
02/11/2007 06:19:58
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01265988
Message ID:
01266016
Views:
10
>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)
Previous
Reply
Map
View

Click here to load this message in the networking platform